Date: Wed, 17 Nov 2010 19:31:49 +0000 (UTC) From: Andreas Tobler <andreast@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r215437 - head/sys/boot/ofw/libofw Message-ID: <201011171931.oAHJVn0s002000@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andreast Date: Wed Nov 17 19:31:48 2010 New Revision: 215437 URL: http://svn.freebsd.org/changeset/base/215437 Log: Move the declaration of the eh struct (used only when debugging is enabled) from ofwn_put into the debug section. Approved by: nwhitehorn (mentor) Modified: head/sys/boot/ofw/libofw/ofw_net.c Modified: head/sys/boot/ofw/libofw/ofw_net.c ============================================================================== --- head/sys/boot/ofw/libofw/ofw_net.c Wed Nov 17 19:28:48 2010 (r215436) +++ head/sys/boot/ofw/libofw/ofw_net.c Wed Nov 17 19:31:48 2010 (r215437) @@ -90,11 +90,11 @@ ofwn_probe(struct netif *nif, void *mach static int ofwn_put(struct iodesc *desc, void *pkt, size_t len) { - struct ether_header *eh; size_t sendlen; ssize_t rv; #if defined(NETIF_DEBUG) + struct ether_header *eh; printf("netif_put: desc=0x%x pkt=0x%x len=%d\n", desc, pkt, len); eh = pkt; printf("dst: %s ", ether_sprintf(eh->ether_dhost));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011171931.oAHJVn0s002000>