]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
um: Clean up stacktrace dump
authorJohannes Berg <johannes.berg@intel.com>
Mon, 21 Sep 2020 11:43:25 +0000 (13:43 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 11 Oct 2020 21:25:07 +0000 (23:25 +0200)
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>
arch/um/kernel/sysrq.c

index acbc879d27733660803a7e77637059c6aeba79b3..7452f70d50d06924dbe0039db140ca8a0d0db2db 100644 (file)
@@ -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);
 }