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

lib/debugobjects.c: add pr_fmt to logging

Add ODEBUG: prefix to pr_fmt

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
719e4843 d7ffef28

+8 -5
+8 -5
lib/debugobjects.c
··· 7 7 * 8 8 * For licencing details see kernel-base/COPYING 9 9 */ 10 + 11 + #define pr_fmt(fmt) "ODEBUG: " fmt 12 + 10 13 #include <linux/debugobjects.h> 11 14 #include <linux/interrupt.h> 12 15 #include <linux/sched.h> ··· 221 218 unsigned long flags; 222 219 int i; 223 220 224 - pr_warn("ODEBUG: Out of memory. ODEBUG disabled\n"); 221 + pr_warn("Out of memory. ODEBUG disabled\n"); 225 222 226 223 for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { 227 224 raw_spin_lock_irqsave(&db->lock, flags); ··· 295 292 296 293 limit++; 297 294 if (is_on_stack) 298 - pr_warn("ODEBUG: object is on stack, but not annotated\n"); 295 + pr_warn("object is on stack, but not annotated\n"); 299 296 else 300 - pr_warn("ODEBUG: object is not on stack, but annotated\n"); 297 + pr_warn("object is not on stack, but annotated\n"); 301 298 WARN_ON(1); 302 299 } 303 300 ··· 986 983 if (check_results(&obj, ODEBUG_STATE_NONE, ++fixups, ++warnings)) 987 984 goto out; 988 985 #endif 989 - pr_info("ODEBUG: selftest passed\n"); 986 + pr_info("selftest passed\n"); 990 987 991 988 out: 992 989 debug_objects_fixups = oldfixups; ··· 1091 1088 debug_objects_enabled = 0; 1092 1089 if (obj_cache) 1093 1090 kmem_cache_destroy(obj_cache); 1094 - pr_warn("ODEBUG: out of memory.\n"); 1091 + pr_warn("out of memory.\n"); 1095 1092 } else 1096 1093 debug_objects_selftest(); 1097 1094 }