[RFC] make bb_[p]error_msgXXXX() functions able to direct output to syslog

Denis Vlasenko vda.linux at googlemail.com
Sun Sep 3 17:28:03 UTC 2006


On Sunday 03 September 2006 18:30, Bernhard Fischer wrote:
> >Wow. 8] Why do we use bb_printf and friends? Some hack to get
> >stream status right on errors? How is it useful, for example,
> >in ipcs applet? Or in mountpoint?
> 
> >Why not just printf?
> 
> The reasoning from my side is that i assume that it's benefical to have
> only one printf at PLT (the one in the bb_printf impl) and the rest
> directly to bb_printf to avoid having a ton of @PLT entries for each
> call. Does that make sense?

Well, the reason is okay. The same applies to many other libc functions.
Wrapping _all_ of them in a similar manner would be ugly as hell, tho.

Need to think about it a bit more... #defines maybe...
--
vda



More information about the busybox mailing list