From: Hosung Kim Date: Tue, 2 May 2017 09:21:59 +0000 (+0900) Subject: [COMMON] arm64: kernel: fix to output extra register info X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a059d18f97cc87fd412127248b6aa6fef22ba8c0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] arm64: kernel: fix to output extra register info This commit fixes the align when printing extra register information. Change-Id: I2a091b5f06b78274a4bb1908140f10d84798a90b Signed-off-by: Hosung Kim --- diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index f9dddce3720f..3f25b930d94a 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -207,17 +207,22 @@ static void show_data(unsigned long addr, int nbytes, const char *name) * just display low 16 bits of address to keep * each line of the dump < 80 characters */ - printk("%04lx ", (unsigned long)p & 0xffff); + printk("%04lx :", (unsigned long)p & 0xffff); for (j = 0; j < 8; j++) { u32 data; if (probe_kernel_address(p, data)) { - printk(" ********"); + if (j == 7) + pr_cont(" ********\n"); + else + pr_cont(" ********"); } else { - printk(" %08x", data); + if (j == 7) + pr_cont(" %08X\n", data); + else + pr_cont(" %08X", data); } ++p; } - printk("\n"); } }