powerpc: Fixup whitespace in xmon

There are a few whitespace goolies in xmon.c, some of them appear to
be my fault. Fix them all in one go.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Michael Ellerman
2012-08-23 22:09:13 +00:00
committed by Benjamin Herrenschmidt
parent ca5dd3954a
commit e3bc8049e5

View File

@@ -895,13 +895,13 @@ cmds(struct pt_regs *excp)
#endif #endif
default: default:
printf("Unrecognized command: "); printf("Unrecognized command: ");
do { do {
if (' ' < cmd && cmd <= '~') if (' ' < cmd && cmd <= '~')
putchar(cmd); putchar(cmd);
else else
printf("\\x%x", cmd); printf("\\x%x", cmd);
cmd = inchar(); cmd = inchar();
} while (cmd != '\n'); } while (cmd != '\n');
printf(" (type ? for help)\n"); printf(" (type ? for help)\n");
break; break;
} }
@@ -1194,7 +1194,7 @@ bpt_cmds(void)
default: default:
termch = cmd; termch = cmd;
cmd = skipbl(); cmd = skipbl();
if (cmd == '?') { if (cmd == '?') {
printf(breakpoint_help_string); printf(breakpoint_help_string);
break; break;
@@ -1360,7 +1360,7 @@ static void xmon_show_stack(unsigned long sp, unsigned long lr,
sp + REGS_OFFSET); sp + REGS_OFFSET);
break; break;
} }
printf("--- Exception: %lx %s at ", regs.trap, printf("--- Exception: %lx %s at ", regs.trap,
getvecname(TRAP(&regs))); getvecname(TRAP(&regs)));
pc = regs.nip; pc = regs.nip;
lr = regs.link; lr = regs.link;
@@ -1624,7 +1624,7 @@ static void super_regs(void)
cmd = skipbl(); cmd = skipbl();
if (cmd == '\n') { if (cmd == '\n') {
unsigned long sp, toc; unsigned long sp, toc;
asm("mr %0,1" : "=r" (sp) :); asm("mr %0,1" : "=r" (sp) :);
asm("mr %0,2" : "=r" (toc) :); asm("mr %0,2" : "=r" (toc) :);
@@ -2065,7 +2065,7 @@ prdump(unsigned long adrs, long ndump)
nr = mread(adrs, temp, r); nr = mread(adrs, temp, r);
adrs += nr; adrs += nr;
for (m = 0; m < r; ++m) { for (m = 0; m < r; ++m) {
if ((m & (sizeof(long) - 1)) == 0 && m > 0) if ((m & (sizeof(long) - 1)) == 0 && m > 0)
putchar(' '); putchar(' ');
if (m < nr) if (m < nr)
printf("%.2x", temp[m]); printf("%.2x", temp[m]);
@@ -2073,7 +2073,7 @@ prdump(unsigned long adrs, long ndump)
printf("%s", fault_chars[fault_type]); printf("%s", fault_chars[fault_type]);
} }
for (; m < 16; ++m) { for (; m < 16; ++m) {
if ((m & (sizeof(long) - 1)) == 0) if ((m & (sizeof(long) - 1)) == 0)
putchar(' '); putchar(' ');
printf(" "); printf(" ");
} }
@@ -2153,13 +2153,13 @@ dump_log_buf(void)
unsigned char buf[128]; unsigned char buf[128];
size_t len; size_t len;
if (setjmp(bus_error_jmp) != 0) { if (setjmp(bus_error_jmp) != 0) {
printf("Error dumping printk buffer!\n"); printf("Error dumping printk buffer!\n");
return; return;
} }
catch_memory_errors = 1; catch_memory_errors = 1;
sync(); sync();
kmsg_dump_rewind_nolock(&dumper); kmsg_dump_rewind_nolock(&dumper);
while (kmsg_dump_get_line_nolock(&dumper, false, buf, sizeof(buf), &len)) { while (kmsg_dump_get_line_nolock(&dumper, false, buf, sizeof(buf), &len)) {
@@ -2167,10 +2167,10 @@ dump_log_buf(void)
printf("%s", buf); printf("%s", buf);
} }
sync(); sync();
/* wait a little while to see if we get a machine check */ /* wait a little while to see if we get a machine check */
__delay(200); __delay(200);
catch_memory_errors = 0; catch_memory_errors = 0;
} }
/* /*