Skip to content

Commit 273fe1b

Browse files
jmberg-intelrichardweinberger
authored andcommitted
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>
1 parent e8a5859 commit 273fe1b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/um/kernel/sysrq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@ void show_stack(struct task_struct *task, unsigned long *stack,
4747
if (kstack_end(stack))
4848
break;
4949
if (i && ((i % STACKSLOTS_PER_LINE) == 0))
50-
printk("%s\n", loglvl);
50+
pr_cont("\n");
5151
pr_cont(" %08lx", *stack++);
5252
}
53-
printk("%s\n", loglvl);
5453

5554
printk("%sCall Trace:\n", loglvl);
5655
dump_trace(current, &stackops, (void *)loglvl);
57-
printk("%s\n", loglvl);
5856
}

0 commit comments

Comments
 (0)