Skip to contentSkip to conversation

+ lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 5, 2014 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 05 May 2014 13:35:36 -0700

The patch titled
Subject: lib/plist.c: replace pr_debug with printk in plist_test()
has been added to the -mm tree. Its filename is
lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Dan Streetman <[email protected]>
Subject: 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.

---

 lib/plist.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/plist.c renamed from lib/plist.c~lib-plistc-replace-pr_debug-with-printk-in-plist_test +2 -2
diff -puN lib/plist.c~lib-plistc-replace-pr_debug-with-printk-in-plist_test lib/plist.c
@@ -175,7 +175,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);
@@ -203,7 +203,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;
 }
 

_

Patches currently in -mm which might be from [email protected] are

lib-plistc-replace-pr_debug-with-printk-in-plist_test.patch