Skip to content

Commit 117f572

Browse files
mrutland-armwildea01
authored andcommitted
arm64: add missing printk newlines
A few printk calls in arm64 omit a trailing newline, even though there is no subsequent KERN_CONT printk associated with them, and we actually want a newline. This can result in unrelated lines being appended, rather than appearing on a new line. Additionally, timestamp prefixes may appear in-line. This makes the logs harder to read than necessary. Avoid this by adding a trailing newline. These were found with a shortlist generated by: $ git grep 'pr\(intk\|_.*\)(.*)' -- arch/arm64 | grep -v pr_fmt | grep -v '\\n"' Signed-off-by: Mark Rutland <mark.rutland@arm.com> CC: James Morse <james.morse@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 8f4b326 commit 117f572

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/arm64/kernel/armv8_deprecated.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static int __init armv8_deprecated_init(void)
636636
if(system_supports_mixed_endian_el0())
637637
register_insn_emulation(&setend_ops);
638638
else
639-
pr_info("setend instruction emulation is not supported on the system");
639+
pr_info("setend instruction emulation is not supported on this system\n");
640640
}
641641

642642
cpuhp_setup_state_nocalls(CPUHP_AP_ARM64_ISNDEP_STARTING,

arch/arm64/kernel/hibernate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ int swsusp_arch_resume(void)
472472
*/
473473
tmp_pg_dir = (pgd_t *)get_safe_page(GFP_ATOMIC);
474474
if (!tmp_pg_dir) {
475-
pr_err("Failed to allocate memory for temporary page tables.");
475+
pr_err("Failed to allocate memory for temporary page tables.\n");
476476
rc = -ENOMEM;
477477
goto out;
478478
}
@@ -492,7 +492,7 @@ int swsusp_arch_resume(void)
492492
*/
493493
zero_page = (void *)get_safe_page(GFP_ATOMIC);
494494
if (!zero_page) {
495-
pr_err("Failed to allocate zero page.");
495+
pr_err("Failed to allocate zero page.\n");
496496
rc = -ENOMEM;
497497
goto out;
498498
}
@@ -512,7 +512,7 @@ int swsusp_arch_resume(void)
512512
&phys_hibernate_exit,
513513
(void *)get_safe_page, GFP_ATOMIC);
514514
if (rc) {
515-
pr_err("Failed to create safe executable page for hibernate_exit code.");
515+
pr_err("Failed to create safe executable page for hibernate_exit code.\n");
516516
goto out;
517517
}
518518

0 commit comments

Comments
 (0)