Providing dprintf

Rob Landley rob at landley.net
Tue Oct 25 18:01:32 UTC 2005


On Tuesday 25 October 2005 07:35, walter harms wrote:
> hi all,
>
> perhaps its simpler to turn the problem on its head.
> provide a bb_dprintf() and make it a configoption to disable it.

From my earlier message:

> Could do it as a config option, but it's the kind of horrible config option 
> that people really shouldn't be confronted with in menuconfig.

We really don't want to cram fiddly implementation details down people's 
throats in menuconfig.  Whether or not the C library you're compiling against 
supports dprintf definitely qualifies as a fiddly implementation detail.

Considering we mostly use FILE * elsewhere (which I personally dislike, but 
it's our standard) possibly we should just switch these to fprintf(), and if 
that turns out to bloat the code unacceptably maybe we should rethink our 
pervasive use of FILE * as our standard way of doing I/O through libbb?

Rob



More information about the busybox mailing list