Skip to content

Commit 1f13aa4

Browse files
geertuRussell King
authored andcommitted
ARM: 8973/1: Add missing newline terminator to kernel message
Before commit 874f9c7 ("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 a0cba21 ("Revert "printk: create pr_<level> functions""), it's still good practice to terminate kernel messages with newlines. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 2c96236 commit 1f13aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/atags_proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static int __init init_atags_procfs(void)
4242
size_t size;
4343

4444
if (tag->hdr.tag != ATAG_CORE) {
45-
pr_info("No ATAGs?");
45+
pr_info("No ATAGs?\n");
4646
return -EINVAL;
4747
}
4848

0 commit comments

Comments
 (0)