[COMMON] arm64: kernel: fix to output extra register info
authorHosung Kim <hosung0.kim@samsung.com>
Tue, 2 May 2017 09:21:59 +0000 (18:21 +0900)
committerYoungmin Nam <youngmin.nam@samsung.com>
Fri, 29 Jun 2018 09:17:23 +0000 (18:17 +0900)
This commit fixes the align when printing extra register
information.

Change-Id: I2a091b5f06b78274a4bb1908140f10d84798a90b
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
arch/arm64/kernel/process.c

index f9dddce3720f071c9914b9d22b881ba35d2668f8..3f25b930d94a6f28a78b92a6b548239ed8745971 100644 (file)
@@ -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");
        }
 }