]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8973/1: Add missing newline terminator to kernel message
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 5 May 2020 12:54:36 +0000 (13:54 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 7 May 2020 19:53:10 +0000 (20:53 +0100)
commit2e8dae504bbd65a65f9217301d2cae82d672659a
tree2a6cdaa989114931316c6c4244904ff355404f89
parentd427063a5a105ee3589df2f0d33ef45213ca95d7
ARM: 8973/1: Add missing newline terminator to kernel message

Before commit 6157d469ff8c3744 ("printk: create pr_<level> functions"),
pr_*() calls without a trailing newline characters would be printed with
a newline character appended, both on the console and in the output of
the dmesg command.

After that commit, no new line character is appended, and the output of
the next pr_*() call of the same type may be appended:

    -No ATAGs?
    -hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    +No ATAGs?hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

While this commit has been reverted in commit 1ce6e7248e34c4f3 ("Revert
"printk: create pr_<level> functions""), it's still good practice to
terminate kernel messages with newlines.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/atags_proc.c