diff options
author | Dan Streetman <ddstreet@ieee.org> | 2014-06-04 19:11:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:18 -0400 |
commit | 1812062790ab647e85821f21f2263f56eaeffc11 (patch) | |
tree | 11e76c1b8ceb17c4d639598d20388271edee9211 /lib | |
parent | 84d517f3e56f7d0d305c14a701cee8f7372ebe1e (diff) |
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 <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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plist.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
223 | int nr_expect = 0, i, loop; | 223 | int nr_expect = 0, i, loop; |
224 | unsigned int r = local_clock(); | 224 | unsigned int r = local_clock(); |
225 | 225 | ||
226 | pr_debug("start plist test\n"); | 226 | printk(KERN_DEBUG "start plist test\n"); |
227 | plist_head_init(&test_head); | 227 | plist_head_init(&test_head); |
228 | for (i = 0; i < ARRAY_SIZE(test_node); i++) | 228 | for (i = 0; i < ARRAY_SIZE(test_node); i++) |
229 | plist_node_init(test_node + i, 0); | 229 | plist_node_init(test_node + i, 0); |
@@ -255,7 +255,7 @@ static int __init plist_test(void) | |||
255 | plist_test_check(nr_expect); | 255 | plist_test_check(nr_expect); |
256 | } | 256 | } |
257 | 257 | ||
258 | pr_debug("end plist test\n"); | 258 | printk(KERN_DEBUG "end plist test\n"); |
259 | return 0; | 259 | return 0; |
260 | } | 260 | } |
261 | 261 | ||