This commit fixes the align when printing extra register
information.
Change-Id: I2a091b5f06b78274a4bb1908140f10d84798a90b
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
* 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");
}
}