diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-09-21 14:43:25 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-10-12 00:25:07 +0300 |
commit | 273fe1b676cb59d41e177980a981e27806872954 (patch) | |
tree | 76e5736cb7055f1ae854e5d29ef6883eed06aedb /arch/um | |
parent | e8a58591afbc7dc279a11454c08fce1281958eef (diff) | |
download | linux-273fe1b676cb59d41e177980a981e27806872954.tar.xz |
um: Clean up stacktrace dump
We currently get a few stray newlines, due to the interaction
between printk() and the code here. Remove a few explicit
newline prints to neaten the output.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/sysrq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index acbc879d2773..7452f70d50d0 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -47,12 +47,10 @@ void show_stack(struct task_struct *task, unsigned long *stack, if (kstack_end(stack)) break; if (i && ((i % STACKSLOTS_PER_LINE) == 0)) - printk("%s\n", loglvl); + pr_cont("\n"); pr_cont(" %08lx", *stack++); } - printk("%s\n", loglvl); printk("%sCall Trace:\n", loglvl); dump_trace(current, &stackops, (void *)loglvl); - printk("%s\n", loglvl); } |