Re: [PATCH] printk: Use symbolic defines for console loglevels
From: Valdis . Kletnieks
Date: Tue May 20 2014 - 01:49:09 EST
On Mon, 19 May 2014 20:27:32 +0200, Borislav Petkov said:
> From: Borislav Petkov <bp@xxxxxxx>
>
> ... instead of naked numbers.
>
> Stuff in sysrq.c used to set it to 8 which is supposed to mean above
> default level so set it to DEBUG instead as we're terminating/killing
> all tasks and we want to be verbose there.
>
> There should be no functionality change resulting from this patch.
After a quick eyeballing, looks like it, except for:
> +++ b/arch/x86/kernel/head64.c
> @@ -172,7 +172,7 @@ asmlinkage __visible void __init x86_64_start_kernel(char
* real_mode_data)
> */
> load_ucode_bsp();
>
> - if (console_loglevel == 10)
> + if (console_loglevel >= CONSOLE_LOGLEVEL_DEBUG)
> early_printk("Kernel alive\n");
But this looks like a bugfix that changes the behavior for loglevels > 11.
Having said that, it's probably OK to not split the bugfix out to
a separate patch....
Attachment:
pgpC3WePPrMHL.pgp
Description: PGP signature