summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-12 10:19:12 -0800
committerJiri Kosina <jkosina@suse.cz>2013-04-29 15:24:33 +0200
commit071361d3473ebb8142907470ff12d59c59f6be72 (patch)
treecebdd2bd5cf478c86c1d113f358267a42b0c4413 /mm/slab.c
parent7af584d3b0e0ba025562198e6bfbff3c0fe1f17e (diff)
downloadop-kernel-dev-071361d3473ebb8142907470ff12d59c59f6be72.zip
op-kernel-dev-071361d3473ebb8142907470ff12d59c59f6be72.tar.gz
mm: Convert print_symbol to %pSR
Use the new vsprintf extension to avoid any possible message interleaving. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 856e4a1..96079244 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2040,11 +2040,9 @@ static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines)
}
if (cachep->flags & SLAB_STORE_USER) {
- printk(KERN_ERR "Last user: [<%p>]",
- *dbg_userword(cachep, objp));
- print_symbol("(%s)",
- (unsigned long)*dbg_userword(cachep, objp));
- printk("\n");
+ printk(KERN_ERR "Last user: [<%p>](%pSR)\n",
+ *dbg_userword(cachep, objp),
+ *dbg_userword(cachep, objp));
}
realobj = (char *)objp + obj_offset(cachep);
size = cachep->object_size;
OpenPOWER on IntegriCloud