Skip to content

Commit

Permalink
m32r: Convert print_symbol to %pSR
Browse files Browse the repository at this point in the history
Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Joe Perches authored and Jiri Kosina committed Apr 29, 2013
1 parent 69963a0 commit c8d5cb7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/m32r/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,8 @@ static void show_trace(struct task_struct *task, unsigned long *stack)
printk("Call Trace: ");
while (!kstack_end(stack)) {
addr = *stack++;
if (__kernel_text_address(addr)) {
printk("[<%08lx>] ", addr);
print_symbol("%s\n", addr);
}
if (__kernel_text_address(addr))
printk("[<%08lx>] %pSR\n", addr, (void *)addr);
}
printk("\n");
}
Expand Down

0 comments on commit c8d5cb7

Please sign in to comment.