Subject: Re: diagnostic routines
To: None <>
From: Bill Studenmund <>
List: tech-kern
Date: 11/24/2004 10:38:22
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,
> 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.
> 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=
sure how to do variargs macros. Also, I expect the compiler should be able=
to remove an empty static inline.

Take care,


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

Version: GnuPG v1.2.3 (NetBSD)