This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: formats and syslog question
On Fri, Sep 13, 2002 at 11:24:15AM -0400, Daniel Jacobowitz wrote:
> Well, if you have an idea on a syntax for more extensible format
> checking, as Joseph mentioned above, it'd be much nicer if you want
> down that path. For instance, Linux's printk() would very much like to
> have format checking, but it can't at the moment because it has some
> custom specifiers.
Sorry, no idea for a non-icky syntax yet.
On the other hand, I consider syslog() to be much more useful than printk,
as syslog is universal among unix systems, whereas printk is limited to
one single variant. Maybe Jason R. Thorpe will have further ideas, as
I know that NetBSD has a custom version of the printf format for their
kernel printf ?