Re: init-mainc-convert-to-pr_foo.patch is IMHO broken

From: Andrew Morton
Date: Tue Apr 23 2013 - 15:26:22 EST


On Tue, 23 Apr 2013 21:18:39 +0200 Uwe Kleine-K__nig <u.kleine-koenig@xxxxxxxxxxxxxx> wrote:

> Hello,
>
> init-mainc-convert-to-pr_foo.patch breaks the initcall_debug kernel
> parameter. Before the patch I could add
>
> initcall_debug ignore_loglevel
>
> to the kernel command line and got some additional output about
> initcalls. Now that init/main.c uses pr_debug instead of
> printk(KERN_DEBUG ...) the interesting statements are not compiled in
> any more.
>

huh. pr_debug() is different from all the other pr_foo()s. I never
noticed that.

This?

--- a/init/main.c~init-mainc-convert-to-pr_foo-fix
+++ a/init/main.c
@@ -9,6 +9,8 @@
* Simplified starting of init: Michael A. Griffith <grif@xxxxxxx>
*/

+#define DEBUG
+
#include <linux/types.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
_

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/