lib/plist.c: replace pr_debug with printk in plist_test()
authorDan Streetman <ddstreet@ieee.org>
Wed, 4 Jun 2014 23:11:49 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:18 +0000 (16:54 -0700)
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 <ddstreet@ieee.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/plist.c

index 0f2084d30798b2f9b3bd948ed82504a733493820..d408e774b7462413a16768a928074b6aa028a965 100644 (file)
@@ -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;
 }
 
This page took 0.027279 seconds and 5 git commands to generate.