Module Name: src Committed By: jakllsch Date: Sat Jul 30 04:18:38 UTC 2011
Modified Files: src/sys/arch/sparc/stand/ofwboot: netif_of.c Log Message: printf fixes for ifdef NETIF_DEBUG To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/sparc/stand/ofwboot/netif_of.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/stand/ofwboot/netif_of.c diff -u src/sys/arch/sparc/stand/ofwboot/netif_of.c:1.8 src/sys/arch/sparc/stand/ofwboot/netif_of.c:1.9 --- src/sys/arch/sparc/stand/ofwboot/netif_of.c:1.8 Sat May 21 15:50:42 2011 +++ src/sys/arch/sparc/stand/ofwboot/netif_of.c Sat Jul 30 04:18:38 2011 @@ -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