List Info

Thread: Re: standard DPRINTF




Re: standard DPRINTF
user name
2007-03-30 07:37:12
In article <1175113854.539303.717.nullmailergalant.ukfsn.org>
plunkyrya-online.net writes:

> On Wed, 28 Mar 2007, ITOH Yasufumi wrote:
> 
> > Hello,
> >
> > In article
<1175027504.716736.1914.nullmailergalant.ukfsn.org>
> > plunkyrya-online.net writes:
> >
> > >    I think this standardized DPRINTF API is
in some kind of shape now, any
> > > objections or comments?
> >
> > I think the names DEBUG* and DPRINT* are too
generic.
> > Please use different names to avoid unnecessary
conflicts with other's code.
> 
> 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.

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

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

Just in my opinion.
-- 
ITOH Yasufumi

Re: standard DPRINTF
user name
2007-03-30 14: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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )