Re: [PATCH] printk.caller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Thursday, October 2, 2008 - 4:31 pm

On Thu,  2 Oct 2008 16:21:15 -0700 (PDT)
Roland McGrath <roland@redhat.com> wrote:


hm.  What do others think?


This is quite misleading.  The config help implies that
CONFIG_PRINTK_CALLER will enable the feature at compile time.  But it
doesn't - it just sets the boot-time enable/disable default.

If you do this:

#ifdef CONFIG_PRINTK_CALLER
static int printk_caller = 1;
#else
#define printk_caller 0
#endif

then the implementation would somewhat reflect the config option.


But I'd suggest that this thing is so small that it doesn't need a
config option to enable the presence of the code - just make it
unconditional.

Also, I guess that the boot-time option is useful, but a runtime /proc
knob might also be needed?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] printk.caller, Roland McGrath, (Thu Oct 2, 4:21 pm)
Re: [PATCH] printk.caller, Andrew Morton, (Thu Oct 2, 4:31 pm)
Re: [PATCH] printk.caller, Roland McGrath, (Thu Oct 2, 4:43 pm)
Re: [PATCH] printk.caller, Peter Zijlstra, (Fri Oct 3, 3:40 am)