diff options
author | marcel <marcel@FreeBSD.org> | 2009-05-30 19:28:38 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-05-30 19:28:38 +0000 |
commit | 4995d6a8653c0170a9669ad1403010be03427252 (patch) | |
tree | a5f166b4c0c89655a8a221ba3448b94ed9e7b5ee /sys/boot/uboot | |
parent | 9452336efa60e42bb95d12a0d309fc7e7a01681b (diff) | |
download | FreeBSD-src-4995d6a8653c0170a9669ad1403010be03427252.zip FreeBSD-src-4995d6a8653c0170a9669ad1403010be03427252.tar.gz |
Fix NETIF_DEBUG compilation.
Diffstat (limited to 'sys/boot/uboot')
-rw-r--r-- | sys/boot/uboot/lib/net.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/boot/uboot/lib/net.c b/sys/boot/uboot/lib/net.c index a7036ac..902e372 100644 --- a/sys/boot/uboot/lib/net.c +++ b/sys/boot/uboot/lib/net.c @@ -46,12 +46,6 @@ __FBSDID("$FreeBSD$"); #include "glue.h" #include "libuboot.h" -#define NETIF_DEBUG -#define NETIF_VERBOSE_DEBUG -#undef NETIF_DEBUG -#undef NETIF_VERBOSE_DEBUG - - static int net_probe(struct netif *, void *); static int net_match(struct netif *, void *); static void net_init(struct iodesc *, void *); @@ -138,7 +132,7 @@ net_put(struct iodesc *desc, void *pkt, size_t len) #if defined(NETIF_DEBUG) struct ether_header *eh; - printf("net_put: desc 0x%x, pkt 0x%x, len %d\n", desc, pkt, len); + printf("net_put: desc %p, pkt %p, len %d\n", desc, pkt, len); eh = pkt; printf("dst: %s ", ether_sprintf(eh->ether_dhost)); printf("src: %s ", ether_sprintf(eh->ether_shost)); @@ -175,7 +169,7 @@ net_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) int err, rlen; #if defined(NETIF_DEBUG) - printf("net_get: pkt %x, len %d, timeout %d\n", pkt, len, timeout); + printf("net_get: pkt %p, len %d, timeout %d\n", pkt, len, timeout); #endif t = getsecs(); do { |