Sat Jul 30 04:18:38 2011 UTC ()
printf fixes for ifdef NETIF_DEBUG


(jakllsch)
diff -r1.8 -r1.9 src/sys/arch/sparc/stand/ofwboot/netif_of.c

cvs diff -r1.8 -r1.9 src/sys/arch/sparc/stand/ofwboot/netif_of.c (expand / switch to context diff)
--- src/sys/arch/sparc/stand/ofwboot/netif_of.c 2011/05/21 15:50:42 1.8
+++ src/sys/arch/sparc/stand/ofwboot/netif_of.c 2011/07/30 04:18:38 1.9
@@ -1,4 +1,4 @@
-/*	$NetBSD: netif_of.c,v 1.8 2011/05/21 15:50:42 tsutsui Exp $	*/
+/*	$NetBSD: netif_of.c,v 1.9 2011/07/30 04:18:38 jakllsch Exp $	*/
 
 /*
  * Copyright (C) 1995 Wolfgang Solfrank.
@@ -147,7 +147,7 @@
 	{
 		struct ether_header *eh;
 
-		printf("netif_put: desc=0x%x pkt=0x%x len=%d\n",
+		printf("netif_put: desc=%p pkt=%p len=%zu\n",
 		       desc, pkt, len);
 		eh = pkt;
 		printf("dst: %s ", ether_sprintf(eh->ether_dhost));
@@ -160,14 +160,14 @@
 	if (sendlen < 60) {
 		sendlen = 60;
 #ifdef	NETIF_DEBUG
-		printf("netif_put: length padded to %d\n", sendlen);
+		printf("netif_put: length padded to %zu\n", sendlen);
 #endif
 	}
 
 	rv = prom_write(op->handle, pkt, sendlen);
 
 #ifdef	NETIF_DEBUG
-	printf("netif_put: xmit returned %d\n", rv);
+	printf("netif_put: xmit returned %zd\n", rv);
 #endif
 
 	if (rv > len)
@@ -190,7 +190,7 @@
 	op = ((struct netif *)desc->io_netif)->nif_devdata;
 
 #ifdef	NETIF_DEBUG
-	printf("netif_get: pkt=0x%x, maxlen=%d, tmo=%d\n",
+	printf("netif_get: pkt=%p, maxlen=%zu, tmo=%d\n",
 	       pkt, maxlen, timo);
 #endif