diff mbox series

um: clean up stacktrace dump

Message ID 20200921134325.f1571009ca6a.I25fc8d2d67f9d6677402b2753989ba74a700d9c5@changeid
State Accepted
Headers show
Series um: clean up stacktrace dump | expand

Commit Message

Johannes Berg Sept. 21, 2020, 11:43 a.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

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>
 arch/um/kernel/sysrq.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series


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))
 		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);