m32r: Convert print_symbol to %pSR
authorJoe Perches <joe@perches.com>
Wed, 12 Dec 2012 18:18:57 +0000 (10:18 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 29 Apr 2013 13:21:06 +0000 (15:21 +0200)
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>
arch/m32r/kernel/traps.c

index 3bcb207e5b6d2611127ca3d85526735882db952a..9fe3467a51339a8565bed472d8444fc519dcc3de 100644 (file)
@@ -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");
 }