Commit d7ffef28 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

lib/debugobjects.c: convert printk to pr_foo()

Convert all printk to pr_foo() except KERN_DEBUG (see
Documentation/CodingStyle Chapter 13)
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1d88aa44
...@@ -218,7 +218,7 @@ static void debug_objects_oom(void) ...@@ -218,7 +218,7 @@ static void debug_objects_oom(void)
unsigned long flags; unsigned long flags;
int i; int i;
printk(KERN_WARNING "ODEBUG: Out of memory. ODEBUG disabled\n"); pr_warn("ODEBUG: Out of memory. ODEBUG disabled\n");
for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) {
raw_spin_lock_irqsave(&db->lock, flags); raw_spin_lock_irqsave(&db->lock, flags);
...@@ -292,11 +292,9 @@ static void debug_object_is_on_stack(void *addr, int onstack) ...@@ -292,11 +292,9 @@ static void debug_object_is_on_stack(void *addr, int onstack)
limit++; limit++;
if (is_on_stack) if (is_on_stack)
printk(KERN_WARNING pr_warn("ODEBUG: object is on stack, but not annotated\n");
"ODEBUG: object is on stack, but not annotated\n");
else else
printk(KERN_WARNING pr_warn("ODEBUG: object is not on stack, but annotated\n");
"ODEBUG: object is not on stack, but annotated\n");
WARN_ON(1); WARN_ON(1);
} }
...@@ -985,7 +983,7 @@ static void __init debug_objects_selftest(void) ...@@ -985,7 +983,7 @@ static void __init debug_objects_selftest(void)
if (check_results(&obj, ODEBUG_STATE_NONE, ++fixups, ++warnings)) if (check_results(&obj, ODEBUG_STATE_NONE, ++fixups, ++warnings))
goto out; goto out;
#endif #endif
printk(KERN_INFO "ODEBUG: selftest passed\n"); pr_info("ODEBUG: selftest passed\n");
out: out:
debug_objects_fixups = oldfixups; debug_objects_fixups = oldfixups;
...@@ -1090,7 +1088,7 @@ void __init debug_objects_mem_init(void) ...@@ -1090,7 +1088,7 @@ void __init debug_objects_mem_init(void)
debug_objects_enabled = 0; debug_objects_enabled = 0;
if (obj_cache) if (obj_cache)
kmem_cache_destroy(obj_cache); kmem_cache_destroy(obj_cache);
printk(KERN_WARNING "ODEBUG: out of memory.\n"); pr_warn("ODEBUG: out of memory.\n");
} else } else
debug_objects_selftest(); debug_objects_selftest();
} }
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