Re: [PATCH] init/main.c: log initcall level when initcall_debug is used

Rob Landley <[email protected]> Thu, 3 Apr 2025 01:42:46 -0500
Newsgroups org.kernel.vger.linux-embedded,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 4/2/25 21:55, Andrew Morton wrote:
> Please review and test this fixlet:
> 
> --- a/init/main.c~init-mainc-log-initcall-level-when-initcall_debug-is-used-fix
> +++ a/init/main.c
> @@ -1217,7 +1217,7 @@ trace_initcall_finish_cb(void *data, ini
>   static __init_or_module void
>   trace_initcall_level_cb(void *data, const char *level)
>   {
> -	printk(KERN_DEBUG "entering initcall level: %s\n", level);
> +	pr_debug("entering initcall level: %s\n", level);
>   }

How do I tell kconfig to remove all pr_blah() below loglevel X so they 
aren't compiled into the kernel taking up space? I thought that was the 
reason for switching to the pr_thingy() macros (it was in the old -tiny 
tree Mackall walked away from) but last time I tried to do it in vanilla 
I couldn't find the knob or trace the relevant plumbing...

Rob