Commit 79155023 authored by Vineet Gupta's avatar Vineet Gupta

ARC: show_regs: avoid extra line of output

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 40db9367
...@@ -191,10 +191,9 @@ void show_regs(struct pt_regs *regs) ...@@ -191,10 +191,9 @@ void show_regs(struct pt_regs *regs)
if (user_mode(regs)) if (user_mode(regs))
show_faulting_vma(regs->ret); /* faulting code, not data */ show_faulting_vma(regs->ret); /* faulting code, not data */
pr_info("ECR: 0x%08lx EFA: 0x%08lx ERET: 0x%08lx\n", pr_info("ECR: 0x%08lx EFA: 0x%08lx ERET: 0x%08lx\nSTAT: 0x%08lx",
regs->event, current->thread.fault_address, regs->ret); regs->event, current->thread.fault_address, regs->ret,
regs->status32);
pr_info("STAT32: 0x%08lx", regs->status32);
#define STS_BIT(r, bit) r->status32 & STATUS_##bit##_MASK ? #bit" " : "" #define STS_BIT(r, bit) r->status32 & STATUS_##bit##_MASK ? #bit" " : ""
...@@ -210,11 +209,10 @@ void show_regs(struct pt_regs *regs) ...@@ -210,11 +209,10 @@ void show_regs(struct pt_regs *regs)
(regs->status32 & STATUS_U_MASK) ? "U " : "K ", (regs->status32 & STATUS_U_MASK) ? "U " : "K ",
STS_BIT(regs, DE), STS_BIT(regs, AE)); STS_BIT(regs, DE), STS_BIT(regs, AE));
#endif #endif
pr_cont(" BTA: 0x%08lx\n", regs->bta); pr_cont(" BTA: 0x%08lx\n SP: 0x%08lx FP: 0x%08lx BLK: %pS\n",
pr_info("BLK: %pS\n SP: 0x%08lx FP: 0x%08lx\n", regs->bta, regs->sp, regs->fp, (void *)regs->blink);
(void *)regs->blink, regs->sp, regs->fp);
pr_info("LPS: 0x%08lx\tLPE: 0x%08lx\tLPC: 0x%08lx\n", pr_info("LPS: 0x%08lx\tLPE: 0x%08lx\tLPC: 0x%08lx\n",
regs->lp_start, regs->lp_end, regs->lp_count); regs->lp_start, regs->lp_end, regs->lp_count);
/* print regs->r0 thru regs->r12 /* print regs->r0 thru regs->r12
* Sequential printing was generating horrible code * Sequential printing was generating horrible code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment