Subject: Re: standard DPRINTF
To: ITOH Yasufumi <itohy@netbsd.org>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 03/30/2007 20:20:47
On Fri, 30 Mar 2007, ITOH Yasufumi wrote:

> > surely the point of DPRINT is that it *is* generic? many places in the
> > code already use this, and I would intend to convert them to use
> > <sys/debug.h> when I can. So far as I can tell, there is no conflict, none
> > of the code that uses DPRINTF currently includes <sys/debug.h>
>
> IMO, converting to and from <sys/debug.h> is waste of people's power.
> BSDs share some portion of code, and if someone uses <sys/debug.h>
> importing and exporting source code requires extra work.

IMHO I don't think sharing code is always a perfect ideal. Eg, the USB
code is (mostly) shared but the obfustication used to manage that makes it
difficult to understand what is going on..

> We don't have enough persons' power, say, compated with Linux,
> I don't think wasting power is a good idea.

I was looking at this, and it exercises my developer muscle which
increases my power, its no waste :)

> If you are proposing common debugging API for all BSDs, I would
> appreciate it.  That probably saves our time.

Well, I have no influence at the other BSDs - all I mean to do is to
provide a way so that we can easily produce debug output without having to
roll your own interface and control mechanism for every source file or
module. If it works well and they choose to adopt a <sys/debug.h> then
fine.

regards,
iain