diff options
-rw-r--r-- | kernel/printk/printk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index d5e397315473..de08fc90baaf 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c | |||
@@ -1769,6 +1769,10 @@ static size_t log_output(int facility, int level, enum log_flags lflags, const c | |||
1769 | cont_flush(); | 1769 | cont_flush(); |
1770 | } | 1770 | } |
1771 | 1771 | ||
1772 | /* Skip empty continuation lines that couldn't be added - they just flush */ | ||
1773 | if (!text_len && (lflags & LOG_CONT)) | ||
1774 | return 0; | ||
1775 | |||
1772 | /* If it doesn't end in a newline, try to buffer the current line */ | 1776 | /* If it doesn't end in a newline, try to buffer the current line */ |
1773 | if (!(lflags & LOG_NEWLINE)) { | 1777 | if (!(lflags & LOG_NEWLINE)) { |
1774 | if (cont_add(facility, level, lflags, text, text_len)) | 1778 | if (cont_add(facility, level, lflags, text, text_len)) |