diff options
author | John Ogness <john.ogness@linutronix.de> | 2020-11-26 12:54:36 +0106 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-11-27 11:58:54 +0100 |
commit | 4ad9921af4f18490980369f7d60f90ade0195812 (patch) | |
tree | 988e34d10be38b6c17d72a3cce05bc6dfd8abe5f /init | |
parent | 8119c4332d253660e0a6b8748fe0749961cfbc97 (diff) |
printk: finalize records with trailing newlines
Any record with a trailing newline (LOG_NEWLINE flag) cannot
be continued because the newline has been stripped and will
not be visible if the message is appended. This was already
handled correctly when committing in log_output() but was
not handled correctly when committing in log_store().
Fixes: f5f022e53b87 ("printk: reimplement log_cont using record extension")
Link: https://lore.kernel.org/r/20201126114836.14750-1-john.ogness@linutronix.de
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions