Subject: Re: wrong variable in toccata.c
To: None <port-amiga@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-amiga
Date: 03/27/2002 20:13:22
On Wed, Mar 27, 2002 at 03:53:18AM +0100, Klaus Heinz wrote:
> Hi,
> 
> compiling a GENERIC kernel with 'options DEBUG' showed an error in
> amiga/dev/toccata.c.
> 
> Is the attached patch ok ? I don't know whether sc_dev.dv_xname (char [16])
> is supposed to be a real string with \0.
> 
> ciao
>      Klaus
> 
> 
> --- toccata.c	Wed Mar 27 03:50:45 2002
> +++ toccata.c_new	Wed Mar 27 03:50:38 2002
> @@ -338,7 +338,8 @@
>  	 * FIFO interupt.
>  	 */
>  #ifdef DEBUG
> -	printf("%s: got unexpected interupt %x\n", sc->sc_ad.sc_dev, status);
> +	printf("%s: got unexpected interupt %x\n", sc->sc_ad.sc_dev.dv_xname,
> +	       status);
>  #endif
>  	*sc->sc_boardp = TOCC_ACT;
>  	return 1;

Yes, this is correct. Please fix it.

Regards,
	-is