Skip to content

Commit

Permalink
lib/plist.c: replace pr_debug with printk in plist_test()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ddstreet authored and torvalds committed Jun 4, 2014
1 parent 84d517f commit 1812062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 1812062

Please sign in to comment.