Subject: Re: DPRINTF in ?
To: None <tech-kern@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-kern
Date: 03/16/2007 15:06:54
On Fri, Mar 16, 2007 at 10:06:39AM +0000, Iain Hibbert wrote:
> Hi,
>    I thought a while ago that it would be nice to standardize DPRINTF and
> DPRINTFN, and now that we have a <sys/debug.h> I've been pondering how we
> could integrate them, and make it easier to generate debug output. These
> are my thoughts so far:

Two thoughts:

        C99 variadic macros make it easier to read & write debug
        statements than the DPRINTF(level, (fmt, arg1, ...)) idiom.

        a debug bitmask is at least as expressive as a debug level,
        and more versatile.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933