From a059d18f97cc87fd412127248b6aa6fef22ba8c0 Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Tue, 2 May 2017 18:21:59 +0900 Subject: [PATCH] [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 --- arch/arm64/kernel/process.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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"); } } -- 2.20.1