[PATCH] arm64: add missing printk newlines

Will Deacon will.deacon at arm.com
Tue Jan 10 04:36:48 PST 2017


On Mon, Jan 09, 2017 at 02:13:36PM +0000, Mark Rutland wrote:
> 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 at arm.com>
> CC: James Morse <james.morse at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will.deacon at arm.com>
> ---
>  arch/arm64/kernel/armv8_deprecated.c | 2 +-
>  arch/arm64/kernel/hibernate.c        | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)

Applied for 4.11.

Will



More information about the linux-arm-kernel mailing list