Commit 18120627 authored by Dan Streetman's avatar Dan Streetman Committed by Linus Torvalds

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: default avatarDan Streetman <ddstreet@ieee.org>
Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 84d517f3
...@@ -223,7 +223,7 @@ static int __init plist_test(void) ...@@ -223,7 +223,7 @@ static int __init plist_test(void)
int nr_expect = 0, i, loop; int nr_expect = 0, i, loop;
unsigned int r = local_clock(); unsigned int r = local_clock();
pr_debug("start plist test\n"); printk(KERN_DEBUG "start plist test\n");
plist_head_init(&test_head); plist_head_init(&test_head);
for (i = 0; i < ARRAY_SIZE(test_node); i++) for (i = 0; i < ARRAY_SIZE(test_node); i++)
plist_node_init(test_node + i, 0); plist_node_init(test_node + i, 0);
...@@ -255,7 +255,7 @@ static int __init plist_test(void) ...@@ -255,7 +255,7 @@ static int __init plist_test(void)
plist_test_check(nr_expect); plist_test_check(nr_expect);
} }
pr_debug("end plist test\n"); printk(KERN_DEBUG "end plist test\n");
return 0; return 0;
} }
......
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