From owner-freebsd-net Fri Sep 6 17:40:52 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AF3137B400 for ; Fri, 6 Sep 2002 17:40:47 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 869F243E4A for ; Fri, 6 Sep 2002 17:40:34 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id g870eUwu000562; Fri, 6 Sep 2002 17:40:30 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id g870eOif000558; Fri, 6 Sep 2002 17:40:24 -0700 Date: Fri, 6 Sep 2002 17:40:24 -0700 From: Brooks Davis To: Brooks Davis Cc: net@FreeBSD.ORG Subject: Re: adding if_printf() Message-ID: <20020906174024.A32666@Odin.AC.HMC.Edu> References: <20020815133314.A5037@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020815133314.A5037@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Thu, Aug 15, 2002 at 01:33:14PM -0700 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 15, 2002 at 01:33:14PM -0700, Brooks Davis wrote: > I propose we create a new function if_printf() which is just like > device_printf() except that it takes a (struct ifnet *) instead of a > device_t. It prints things like: >=20 > an0: message >=20 > Since this is what the vast majority of printfs in interface code, using > this function would be cleaner and easier. Additionaly, it potentialy > gives driver authors a say to keep their source more compatable between > 4.x and 5.x after the if_xname conversion. Does anyone violently oppose this function? I think it's the best way to keep the move to if_xname sane. I'd like to commit it soon and start converting drivers. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9eUr2XY6L6fI4GtQRAlyaAJ9tvmJeeP5Dvdm4ZR62VBt0vcbhCQCg4XYf hU0IBoDr5He1axBew6n13/4= =gJ5i -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message