Re: [RFC] Recursive printk

From: Al Viro
Date: Sat Dec 06 2008 - 14:35:57 EST


On Sat, Dec 06, 2008 at 07:40:38PM +1100, Nick Andrew wrote:

> The basic problem is that subsystems want to prepend or append their
> own data to kernel messages generated by subsystem code, and they
> both want to use printf-type strings. How to combine them into a
> single kernel log message without using extra memory, or double
> handling of strings?

The basic problem with your approach is that printk interpretation of
arguments becomes dependent on more than its first (and hopefully
an explicit constant) argument.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/