Subject: Re: diagnostic routines
To: None <tech-kern@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 11/24/2004 10:38:22
--hOcCNbCCxyk/YU74
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 24, 2004 at 10:11:28AM -0500, Allen Briggs wrote:
> Greetings folks,
>=20
> I've found myself writing various kinds of diagnostic printing
> routines over the years.  They generally fall into a couple of
> categories, and I re-invent these small wheels over and over
> again.  Each time I write one of these routines, I think that
> maybe I should put them in a library or something.
>=20
> So I'm asking...  Does anyone have opinions on adding some
> debug print routines to libkern?

I like the idea. I was about to say I'd rather we had a macro that just=20
defined the calls away if we didn't have DEBUG defined, but I'm not fully=
=20
sure how to do variargs macros. Also, I expect the compiler should be able=
=20
to remove an empty static inline.

Take care,

Bill

--hOcCNbCCxyk/YU74
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFBpNUeWz+3JHUci9cRAuvrAJ9KlbMqB98Bqh5hHizamvoQzviRKQCfce5X
bLjpSmAarXjJyHTP97gLrC8=
=BRHU
-----END PGP SIGNATURE-----

--hOcCNbCCxyk/YU74--