Date: Tue, 24 Sep 2002 10:35:08 -0700 (PDT) From: Brooks Davis <brooks@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if.c if_var.h Message-ID: <200209241735.g8OHZ8L6082460@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brooks 2002/09/24 10:35:08 PDT
Modified files:
sys/net if.c if_var.h
Log:
Add a new helper function if_printf() modeled on device_printf(). The
function takes a struct ifnet pointer followed by the usual printf
arguments and prints "<interfacename>: " before the results of printf.
Since this is the primary form of printf calls in network device drivers
and accounts for most uses of the ifnet menber if_unit, this
significantly simplifies many printf()s.
Revision Changes Path
1.149 +14 -0 src/sys/net/if.c
1.50 +1 -0 src/sys/net/if_var.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209241735.g8OHZ8L6082460>
