diff options
| author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-10-17 05:59:58 -0400 |
|---|---|---|
| committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-10-17 08:44:31 -0400 |
| commit | a790634544f5f98364b0aafe9d7e669810d96360 (patch) | |
| tree | 0951a0372f6915a1d93a6b9c3e9147ca72e6a890 /arch/s390/kernel | |
| parent | d0208639dbc6fe97a25054df44faa2d19aca9380 (diff) | |
s390/dumpstack: use pr_cont where appropriate
Use pr_cont instead of simple printk calls when lines will be
continued. This fixes the kernel output of various lines printed on
e.g. a warning:
Before:
[ 0.840604] Krnl PSW : 0404c00180000000 000000000017d1d2
[ 0.840606] (try_to_wake_up+0x382/0x5e0)
[ 0.840610] R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0
[ 0.840611] RI:0 EA:3
After:
[ 0.831772] Krnl PSW : 0404c00180000000 000000000017d14a (try_to_wake_up+0x382/0x5e0)
[ 0.831776] R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:0 PM:0 RI:0 EA:3
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
| -rw-r--r-- | arch/s390/kernel/dumpstack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/s390/kernel/dumpstack.c b/arch/s390/kernel/dumpstack.c index 518f615ad0a2..4bebe72b7780 100644 --- a/arch/s390/kernel/dumpstack.c +++ b/arch/s390/kernel/dumpstack.c | |||
| @@ -168,13 +168,13 @@ void show_registers(struct pt_regs *regs) | |||
| 168 | mode = user_mode(regs) ? "User" : "Krnl"; | 168 | mode = user_mode(regs) ? "User" : "Krnl"; |
| 169 | printk("%s PSW : %p %p", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); | 169 | printk("%s PSW : %p %p", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); |
| 170 | if (!user_mode(regs)) | 170 | if (!user_mode(regs)) |
| 171 | printk(" (%pSR)", (void *)regs->psw.addr); | 171 | pr_cont(" (%pSR)", (void *)regs->psw.addr); |
| 172 | printk("\n"); | 172 | pr_cont("\n"); |
| 173 | printk(" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x " | 173 | printk(" R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x " |
| 174 | "P:%x AS:%x CC:%x PM:%x", psw->r, psw->t, psw->i, psw->e, | 174 | "P:%x AS:%x CC:%x PM:%x", psw->r, psw->t, psw->i, psw->e, |
| 175 | psw->key, psw->m, psw->w, psw->p, psw->as, psw->cc, psw->pm); | 175 | psw->key, psw->m, psw->w, psw->p, psw->as, psw->cc, psw->pm); |
| 176 | printk(" RI:%x EA:%x", psw->ri, psw->eaba); | 176 | pr_cont(" RI:%x EA:%x\n", psw->ri, psw->eaba); |
| 177 | printk("\n%s GPRS: %016lx %016lx %016lx %016lx\n", mode, | 177 | printk("%s GPRS: %016lx %016lx %016lx %016lx\n", mode, |
| 178 | regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); | 178 | regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); |
| 179 | printk(" %016lx %016lx %016lx %016lx\n", | 179 | printk(" %016lx %016lx %016lx %016lx\n", |
| 180 | regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); | 180 | regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); |
