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.
Showing the changes to include/linux (2 of 3 files). Show all
Unified · Split
| @@ -14,7 +14,7 @@ · 13 unmodified lines | ||
| 14 | 14 | #define KERN_INFO KERN_SOH "6" /* informational */ |
| 15 | 15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ |
| 16 | 16 | |
| 17 | −#define KERN_DEFAULT KERN_SOH "d" /* the default kernel loglevel */ | |
| 17 | +#define KERN_DEFAULT "" /* the default kernel loglevel */ | |
| 18 | 18 | |
| 19 | 19 | /* |
| 20 | 20 | * Annotation for a "continued" line of log printout (only done after a |
| @@ -18,7 +18,6 @@ static inline int printk_get_level(const char *buffer) · 17 unmodified lines | ||
| 18 | 18 | if (buffer[0] == KERN_SOH_ASCII && buffer[1]) { |
| 19 | 19 | switch (buffer[1]) { |
| 20 | 20 | case '0' ... '7': |
| 21 | − case 'd': /* KERN_DEFAULT */ | |
| 22 | 21 | case 'c': /* KERN_CONT */ |
| 23 | 22 | return buffer[1]; |
| 24 | 23 | } |