From owner-cvs-all Tue Sep 24 10:35: 9 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2EC737B401; Tue, 24 Sep 2002 10:35:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9355343E81; Tue, 24 Sep 2002 10:35:08 -0700 (PDT) (envelope-from brooks@FreeBSD.org) Received: from freefall.freebsd.org (brooks@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8OHZ8Co082461; Tue, 24 Sep 2002 10:35:08 -0700 (PDT) (envelope-from brooks@freefall.freebsd.org) Received: (from brooks@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8OHZ8L6082460; Tue, 24 Sep 2002 10:35:08 -0700 (PDT) Message-Id: <200209241735.g8OHZ8L6082460@freefall.freebsd.org> From: Brooks Davis Date: Tue, 24 Sep 2002 10:35:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if.c if_var.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 ": " 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