]> git.baikalelectronics.ru Git - kernel.git/commit
printk: Add KERN_DEFAULT printk log-level
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2009 18:02:28 +0000 (11:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2009 18:02:28 +0000 (11:02 -0700)
commit807cb0b27fd8d4f4117bb1e8de53e47c4111afa2
treec2c8b2a40cb5081e8b6368eecc21220ee59903bf
parentdc135363047d4274549406a4fb427f4cf69c9075
printk: Add KERN_DEFAULT printk log-level

This adds a KERN_DEFAULT loglevel marker, for when you cannot decide
which loglevel you want, and just want to keep an existing printk
with the default loglevel.

The difference between having KERN_DEFAULT and having no log-level
marker at all is two-fold:

 - having the log-level marker will now force a new-line if the
   previous printout had not added one (perhaps because it forgot,
   but perhaps because it expected a continuation)

 - having a log-level marker is required if you are printing out a
   message that otherwise itself could perhaps otherwise be mistaken
   for a log-level.

Signed-of-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kernel.h
kernel/printk.c