History

printk: Remove no longer used LOG_PREFIX.

When commit 5becfb1df5ac8e49 ("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 commit 4bcc595ccd80decb ("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 commit 5aa068ea4082b39e ("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.

Tetsuo Handa committed 7 years ago

Commit e36202a1 parent b6070663 files · +2 −7Browse files

Showing the changes to include/linux (2 of 3 files). Show all

Unified · Split

2 files
  1. include/linux/kern_levels.h +1 −1
  2. include/linux/printk.h +0 −1
include/linux/kern_levels.h+1−1
@@ -14,7 +14,7 @@ · 13 unmodified lines
1414 #define KERN_INFO KERN_SOH "6" /* informational */
1515 #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
1616
17−#define KERN_DEFAULT KERN_SOH "d" /* the default kernel loglevel */
17+#define KERN_DEFAULT "" /* the default kernel loglevel */
1818
1919 /*
2020 * Annotation for a "continued" line of log printout (only done after a
include/linux/printk.h+0−1
@@ -18,7 +18,6 @@ static inline int printk_get_level(const char *buffer) · 17 unmodified lines
1818 if (buffer[0] == KERN_SOH_ASCII && buffer[1]) {
1919 switch (buffer[1]) {
2020 case '0' ... '7':
21− case 'd': /* KERN_DEFAULT */
2221 case 'c': /* KERN_CONT */
2322 return buffer[1];
2423 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t