Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'printk-for-5.10-rc6-fixup' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux

Pull printk fixes from Petr Mladek:

- do not lose trailing newline in pr_cont() calls

- two trivial fixes for a dead store and a config description

* tag 'printk-for-5.10-rc6-fixup' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
printk: finalize records with trailing newlines
printk: remove unneeded dead-store assignment
init/Kconfig: Fix CPU number in LOG_CPU_MAX_BUF_SHIFT description

+3 -5
+1 -1
init/Kconfig
··· 719 719 with more CPUs. Therefore this value is used only when the sum of 720 720 contributions is greater than the half of the default kernel ring 721 721 buffer as defined by LOG_BUF_SHIFT. The default values are set 722 - so that more than 64 CPUs are needed to trigger the allocation. 722 + so that more than 16 CPUs are needed to trigger the allocation. 723 723 724 724 Also this option is ignored when "log_buf_len" kernel parameter is 725 725 used as it forces an exact (power of two) size of the ring buffer.
+2 -2
kernel/printk/printk.c
··· 528 528 if (dev_info) 529 529 memcpy(&r.info->dev_info, dev_info, sizeof(r.info->dev_info)); 530 530 531 - /* insert message */ 532 - if ((flags & LOG_CONT) || !(flags & LOG_NEWLINE)) 531 + /* A message without a trailing newline can be continued. */ 532 + if (!(flags & LOG_NEWLINE)) 533 533 prb_commit(&e); 534 534 else 535 535 prb_final_commit(&e);
-2
kernel/printk/printk_ringbuffer.c
··· 882 882 head_id = atomic_long_read(&desc_ring->head_id); /* LMM(desc_reserve:A) */ 883 883 884 884 do { 885 - desc = to_desc(desc_ring, head_id); 886 - 887 885 id = DESC_ID(head_id + 1); 888 886 id_prev_wrap = DESC_ID_PREV_WRAP(desc_ring, id); 889 887