printk: Remove no longer used LOG_PREFIX.
When commit5becfb1df5
("kmsg: merge continuation records while printing") introduced LOG_PREFIX, we used KERN_DEFAULT etc. as a flag for setting LOG_PREFIX in order to tell whether to call cont_add() (i.e. whether to append the message to "struct cont"). But since commit4bcc595ccd
("printk: reinstate KERN_CONT for printing continuation lines") inverted the behavior (i.e. don't append the message to "struct cont" unless KERN_CONT is specified) and commit5aa068ea40
("printk: remove games with previous record flags") removed the last LOG_PREFIX check, setting LOG_PREFIX via KERN_DEFAULT etc. is no longer meaningful. Therefore, we can remove LOG_PREFIX and make KERN_DEFAULT empty string. Link: http://lkml.kernel.org/r/1550829580-9189-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp To: Steven Rostedt <rostedt@goodmis.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: linux-kernel@vger.kernel.org Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:

committed by
Petr Mladek

parent
b607066442
commit
e36202a844
@@ -18,7 +18,6 @@ static inline int printk_get_level(const char *buffer)
|
||||
if (buffer[0] == KERN_SOH_ASCII && buffer[1]) {
|
||||
switch (buffer[1]) {
|
||||
case '0' ... '7':
|
||||
case 'd': /* KERN_DEFAULT */
|
||||
case 'c': /* KERN_CONT */
|
||||
return buffer[1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user