From: Johannes Berg Date: Mon, 21 Sep 2020 11:43:25 +0000 (+0200) Subject: um: Clean up stacktrace dump X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=273fe1b676cb59d41e177980a981e27806872954;p=linux.git 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 Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index acbc879d27733..7452f70d50d06 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); }