mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* init-mainc-convert-to-pr_foo.patch is IMHO broken
@ 2013-04-23 19:18 Uwe Kleine-König
  2013-04-23 19:26 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2013-04-23 19:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Richard Weinberger, kernel

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.

Best regards
Uwe

PS: sorry for not doing a proper reply but I didn't find something suitable
to reply to.


-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: init-mainc-convert-to-pr_foo.patch is IMHO broken
  2013-04-23 19:18 init-mainc-convert-to-pr_foo.patch is IMHO broken Uwe Kleine-König
@ 2013-04-23 19:26 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2013-04-23 19:26 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: linux-kernel, Richard Weinberger, kernel

On Tue, 23 Apr 2013 21:18:39 +0200 Uwe Kleine-K__nig <u.kleine-koenig@pengutronix.de> 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@acm.org> 
  */
 
+#define DEBUG
+
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/proc_fs.h>
_


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-23 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 19:18 init-mainc-convert-to-pr_foo.patch is IMHO broken Uwe Kleine-König
2013-04-23 19:26 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®