Skip to contentSkip to conversation

Fixed: line break of pr_cont not take effect

PATCH John Ogness 2 participants 2 messages May 23, 2020 – May 26, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

John Ogness

author Acked-by
#1 lore raw

Thank you. I added Sebastian Siewior and linux-rt-users to the addresses since this is a patch against PREEMPT_RT.

Quoted 11 lines · On 2020-05-23, <[email protected]> wrote:

Line break of pr_cont not take effect.
Use several pr_cont to print continuous paragraph, it is expected to have line break when line ends up with '\n', however the paragraph does not have line break
-printk_kthread_func will not print info before log_store insert msg
into printk_rb, and pr_cont calls cont_add to keep data in buffer. cont_add only when the following conditions are met insert msg to printk_rb
1.cpu != c->cpu_owner || !(flags & LOG_CONT)
2.c->len + len > sizeof(c->buf)

Quoted 1 line

@Sebastian: The original patch submission is here[0].

Thanks,
John Ogness

[0] https://lkml.kernel.org/r/[email protected]