Subject: port-mac68k/3619: kernel compiling failure
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kei_sun@ba2.so-net.or.jp>
List: netbsd-bugs
Date: 05/14/1997 23:42:59
>Number:         3619
>Category:       port-mac68k
>Synopsis:       kernel compiling failure
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 14 08:05:00 1997
>Last-Modified:
>Originator:     SUNAGAWA Keiki
>Organization:
>Release:        1997/05/13
>Environment:
	Macintosh IIci
System: NetBSD mint 1.2E NetBSD 1.2E (MINT) #45: Tue May 13 00:49:06 JST 1997 kei@mint:/current/src/sys/arch/mac68k/compile/MINT mac68k


>Description:
	Some printf format is inconsistent with argument type.
>How-To-Repeat:
	Reconfiguring kernel with the 'options DEBUG.' 
>Fix:
	Here is the patch. It works for me.


--- if_sn.c.orig	Fri Apr 25 20:19:01 1997
+++ if_sn.c	Wed Apr 30 19:48:44 1997
@@ -246,7 +246,7 @@
 	printf(" address %s\n", ether_sprintf(lladdr));
 
 #ifdef DEBUG
-	printf("%s: buffers: rra=%p cda=0x%x rda=0x%x tda=0x%x\n",
+	printf("%s: buffers: rra=%p cda=%p rda=%p tda=%p\n",
 	    sc->sc_dev.dv_xname, sc->p_rra[0], sc->p_cda,
 	    sc->p_rda[0], sc->mtda[0].mtd_txp);
 #endif
@@ -772,7 +772,7 @@
 		ap0 = NIC_GET(sc, SNR_CAP0);
 		printf("%d: ap2=0x%x ap1=0x%x ap0=0x%x\n", i, ap2, ap1, ap0);
 	}
-	printf("CAM enable 0x%lx\n", NIC_GET(sc, SNR_CEP));
+	printf("CAM enable 0x%x\n", NIC_GET(sc, SNR_CEP));
 
 	NIC_PUT(sc, SNR_CR, 0);
 	wbflush();
>Audit-Trail:
>Unformatted: