aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-12 03:19:00 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-01-10 01:01:16 -0500
commit03743716316eecddd32ae3314fc6b4dd15e6eec9 (patch)
treea1cb3d61525d526c483d42413b773ecc1435904b /arch/powerpc/platforms/cell
parent44e9309f1f357794b7ae93d5f3e3e6f11d2b8a7f (diff)
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: Joe Perches <joe@perches.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/cell')
-rw-r--r--arch/powerpc/platforms/cell/spu_callbacks.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c
index 75d613313f10..b0ec78e8ad68 100644
--- a/arch/powerpc/platforms/cell/spu_callbacks.c
+++ b/arch/powerpc/platforms/cell/spu_callbacks.c
@@ -60,13 +60,12 @@ long spu_sys_callback(struct spu_syscall_block *s)
60 60
61 syscall = spu_syscall_table[s->nr_ret]; 61 syscall = spu_syscall_table[s->nr_ret];
62 62
63#ifdef DEBUG 63 pr_debug("SPU-syscall "
64 print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall); 64 "%pSR:syscall%lld(%llx, %llx, %llx, %llx, %llx, %llx)\n",
65 printk("syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n", 65 syscall,
66 s->nr_ret, 66 s->nr_ret,
67 s->parm[0], s->parm[1], s->parm[2], 67 s->parm[0], s->parm[1], s->parm[2],
68 s->parm[3], s->parm[4], s->parm[5]); 68 s->parm[3], s->parm[4], s->parm[5]);
69#endif
70 69
71 return syscall(s->parm[0], s->parm[1], s->parm[2], 70 return syscall(s->parm[0], s->parm[1], s->parm[2],
72 s->parm[3], s->parm[4], s->parm[5]); 71 s->parm[3], s->parm[4], s->parm[5]);