Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/ofwboot printf fixes for ifdef NETIF_DEBUG



details:   https://anonhg.NetBSD.org/src/rev/781cbd234203
branches:  trunk
changeset: 767772:781cbd234203
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Jul 30 04:18:38 2011 +0000

description:
printf fixes for ifdef NETIF_DEBUG

diffstat:

 sys/arch/sparc/stand/ofwboot/netif_of.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r c47f38d296a7 -r 781cbd234203 sys/arch/sparc/stand/ofwboot/netif_of.c
--- a/sys/arch/sparc/stand/ofwboot/netif_of.c   Sat Jul 30 03:53:18 2011 +0000
+++ b/sys/arch/sparc/stand/ofwboot/netif_of.c   Sat Jul 30 04:18:38 2011 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index