Commit 03743716 authored by Joe Perches's avatar Joe Perches Committed by Benjamin Herrenschmidt

powerpc: Convert print_symbol to %pSR

Use the new vsprintf extension to avoid any possible
message interleaving.

Convert the #ifdef DEBUG block to a single pr_debug.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 44e9309f
...@@ -60,13 +60,12 @@ long spu_sys_callback(struct spu_syscall_block *s) ...@@ -60,13 +60,12 @@ long spu_sys_callback(struct spu_syscall_block *s)
syscall = spu_syscall_table[s->nr_ret]; syscall = spu_syscall_table[s->nr_ret];
#ifdef DEBUG pr_debug("SPU-syscall "
print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall); "%pSR:syscall%lld(%llx, %llx, %llx, %llx, %llx, %llx)\n",
printk("syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n", syscall,
s->nr_ret, s->nr_ret,
s->parm[0], s->parm[1], s->parm[2], s->parm[0], s->parm[1], s->parm[2],
s->parm[3], s->parm[4], s->parm[5]); s->parm[3], s->parm[4], s->parm[5]);
#endif
return syscall(s->parm[0], s->parm[1], s->parm[2], return syscall(s->parm[0], s->parm[1], s->parm[2],
s->parm[3], s->parm[4], s->parm[5]); s->parm[3], s->parm[4], s->parm[5]);
......
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