Commit 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") allows to define more message headers for a single message. The motivation is that continuous lines might get mixed. Therefore it make sense to define the right log level for every piece of a cont line. This patch introduces printk_skip_headers() that will skip all headers and uses it in the kdb code instead of printk_skip_level(). This approach helps to fix other printk_skip_level() users independently.
Showing the changes to kernel/debug (1 of 2 files). Show all
Unified · Split
| @@ -697,7 +697,7 @@ kdb_printit: · 696 unmodified lines | ||
| 697 | 697 | * Write to all consoles. |
| 698 | 698 | */ |
| 699 | 699 | retlen = strlen(kdb_buffer); |
| 700 | − cp = (char *) printk_skip_level(kdb_buffer); | |
| 700 | + cp = (char *) printk_skip_headers(kdb_buffer); | |
| 701 | 701 | if (!dbg_kdb_mode && kgdb_connected) { |
| 702 | 702 | gdbstub_msg_write(cp, retlen - (cp - kdb_buffer)); |
| 703 | 703 | } else { |