On Wednesday 25 June 2008 17:19, Linus Torvalds wrote:
Can we have alternative printk?
asmlinkage int printk(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2))) __cold;
+asmlinkage int custom_printk(const char * fmt, ...) __cold asm ("printk");
There you go. custom_printk() will not be checked by gcc.
No runtime overhead.
It still makes sense to have some more common ones as single char
for size reasons.
--
vda
--