Commit 273fe1b6 authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger

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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent e8a58591
...@@ -47,12 +47,10 @@ void show_stack(struct task_struct *task, unsigned long *stack, ...@@ -47,12 +47,10 @@ void show_stack(struct task_struct *task, unsigned long *stack,
if (kstack_end(stack)) if (kstack_end(stack))
break; break;
if (i && ((i % STACKSLOTS_PER_LINE) == 0)) if (i && ((i % STACKSLOTS_PER_LINE) == 0))
printk("%s\n", loglvl); pr_cont("\n");
pr_cont(" %08lx", *stack++); pr_cont(" %08lx", *stack++);
} }
printk("%s\n", loglvl);
printk("%sCall Trace:\n", loglvl); printk("%sCall Trace:\n", loglvl);
dump_trace(current, &stackops, (void *)loglvl); dump_trace(current, &stackops, (void *)loglvl);
printk("%s\n", loglvl);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment