diff options
author | Joe Perches <joe@perches.com> | 2012-12-12 13:19:12 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-04-29 09:24:33 -0400 |
commit | 071361d3473ebb8142907470ff12d59c59f6be72 (patch) | |
tree | cebdd2bd5cf478c86c1d113f358267a42b0c4413 /mm | |
parent | 7af584d3b0e0ba025562198e6bfbff3c0fe1f17e (diff) |
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')
-rw-r--r-- | mm/memory.c | 8 | ||||
-rw-r--r-- | mm/slab.c | 8 |
2 files changed, 7 insertions, 9 deletions
diff --git a/mm/memory.c b/mm/memory.c index 494526ae024a..a64c2114616c 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -714,11 +714,11 @@ static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr, | |||
714 | * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y | 714 | * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y |
715 | */ | 715 | */ |
716 | if (vma->vm_ops) | 716 | if (vma->vm_ops) |
717 | print_symbol(KERN_ALERT "vma->vm_ops->fault: %s\n", | 717 | printk(KERN_ALERT "vma->vm_ops->fault: %pSR\n", |
718 | (unsigned long)vma->vm_ops->fault); | 718 | vma->vm_ops->fault); |
719 | if (vma->vm_file && vma->vm_file->f_op) | 719 | if (vma->vm_file && vma->vm_file->f_op) |
720 | print_symbol(KERN_ALERT "vma->vm_file->f_op->mmap: %s\n", | 720 | printk(KERN_ALERT "vma->vm_file->f_op->mmap: %pSR\n", |
721 | (unsigned long)vma->vm_file->f_op->mmap); | 721 | vma->vm_file->f_op->mmap); |
722 | dump_stack(); | 722 | dump_stack(); |
723 | add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); | 723 | add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); |
724 | } | 724 | } |
@@ -2040,11 +2040,9 @@ static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines) | |||
2040 | } | 2040 | } |
2041 | 2041 | ||
2042 | if (cachep->flags & SLAB_STORE_USER) { | 2042 | if (cachep->flags & SLAB_STORE_USER) { |
2043 | printk(KERN_ERR "Last user: [<%p>]", | 2043 | printk(KERN_ERR "Last user: [<%p>](%pSR)\n", |
2044 | *dbg_userword(cachep, objp)); | 2044 | *dbg_userword(cachep, objp), |
2045 | print_symbol("(%s)", | 2045 | *dbg_userword(cachep, objp)); |
2046 | (unsigned long)*dbg_userword(cachep, objp)); | ||
2047 | printk("\n"); | ||
2048 | } | 2046 | } |
2049 | realobj = (char *)objp + obj_offset(cachep); | 2047 | realobj = (char *)objp + obj_offset(cachep); |
2050 | size = cachep->object_size; | 2048 | size = cachep->object_size; |