From: Dan Streetman Date: Thu, 22 May 2014 00:43:38 +0000 (+1000) Subject: lib/plist.c: replace pr_debug with printk in plist_test() X-Git-Tag: next-20140530~2^2~168 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db479c2511ffcdc1d675935d1be382580a2d0d68;p=karo-tx-linux.git lib/plist.c: replace pr_debug with printk in plist_test() Replace pr_debug() in lib/plist.c test function plist_test() with printk(KERN_DEBUG ...). Without DEBUG defined, pr_debug() is complied out, but the entire plist_test() function is already inside CONFIG_DEBUG_PI_LIST, so printk should just be used directly. Signed-off-by: Dan Streetman Reviewed-by: Steven Rostedt Signed-off-by: Andrew Morton --- diff --git a/lib/plist.c b/lib/plist.c index 0f2084d30798..d408e774b746 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -223,7 +223,7 @@ static int __init plist_test(void) int nr_expect = 0, i, loop; unsigned int r = local_clock(); - pr_debug("start plist test\n"); + printk(KERN_DEBUG "start plist test\n"); plist_head_init(&test_head); for (i = 0; i < ARRAY_SIZE(test_node); i++) plist_node_init(test_node + i, 0); @@ -255,7 +255,7 @@ static int __init plist_test(void) plist_test_check(nr_expect); } - pr_debug("end plist test\n"); + printk(KERN_DEBUG "end plist test\n"); return 0; }