Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabian Frederick and committed by
Linus Torvalds
d7ffef28 1d88aa44

+5 -7
+5 -7
lib/debugobjects.c
··· 218 218 unsigned long flags; 219 219 int i; 220 220 221 - printk(KERN_WARNING "ODEBUG: Out of memory. ODEBUG disabled\n"); 221 + pr_warn("ODEBUG: Out of memory. ODEBUG disabled\n"); 222 222 223 223 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { 224 224 raw_spin_lock_irqsave(&db->lock, flags); ··· 292 292 293 293 limit++; 294 294 if (is_on_stack) 295 - printk(KERN_WARNING 296 - "ODEBUG: object is on stack, but not annotated\n"); 295 + pr_warn("ODEBUG: object is on stack, but not annotated\n"); 297 296 else 298 - printk(KERN_WARNING 299 - "ODEBUG: object is not on stack, but annotated\n"); 297 + pr_warn("ODEBUG: object is not on stack, but annotated\n"); 300 298 WARN_ON(1); 301 299 } 302 300 ··· 983 985 if (check_results(&obj, ODEBUG_STATE_NONE, ++fixups, ++warnings)) 984 986 goto out; 985 987 #endif 986 - printk(KERN_INFO "ODEBUG: selftest passed\n"); 988 + pr_info("ODEBUG: selftest passed\n"); 987 989 988 990 out: 989 991 debug_objects_fixups = oldfixups; ··· 1088 1090 debug_objects_enabled = 0; 1089 1091 if (obj_cache) 1090 1092 kmem_cache_destroy(obj_cache); 1091 - printk(KERN_WARNING "ODEBUG: out of memory.\n"); 1093 + pr_warn("ODEBUG: out of memory.\n"); 1092 1094 } else 1093 1095 debug_objects_selftest(); 1094 1096 }