Skip to content

Commit

Permalink
um: Fix _print_addr()
Browse files Browse the repository at this point in the history
Recent changes to printk() broke UML's stack trace
output. Kill the root of the problem by using a single
printk() statement.

Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
richardweinberger committed May 3, 2017
1 parent a351e9b commit ecb6c74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/um/kernel/sysrq.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@

static void _print_addr(void *data, unsigned long address, int reliable)
{
pr_info(" [<%08lx>]", address);
pr_cont(" %s", reliable ? "" : "? ");
print_symbol("%s", address);
pr_cont("\n");
pr_info(" [<%08lx>] %s%pF\n", address, reliable ? "" : "? ",
(void *)address);
}

static const struct stacktrace_ops stackops = {
Expand Down

0 comments on commit ecb6c74

Please sign in to comment.