[Cocci] printf vs. printk (was Re: Side-effect free printk?)

Pavel Machek pavel at ucw.cz
Fri Dec 5 11:32:48 CET 2014


BTW... All the time I'm programming in kernel, I use printf(), and
when hacking userspace, I use printk().


Given that printf() and printk() have exactly the same behaviour,
could we allow printf() in kernel? Now... printk()s are usually
removed before merging the driver, so code will not see much change,
but it will certainly result in less 4-letter words while developing.

(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

More information about the Cocci mailing list