Subject: wrong variable in toccata.c
To: None <port-amiga@netbsd.org>
From: Klaus Heinz <klaus.heinz@onlinehome.de>
List: port-amiga
Date: 03/27/2002 03:53:18
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;