On 2022-11-10, Petr Mladek <pmladek@xxxxxxxx> wrote:...
@@ -106,10 +106,8 @@ static int __init nf_debug_setup(char *arg)
return 0;
stderr_id = nf_get_id("NF_STDERR");
- if (stderr_id) {
- nf_console.flags |= CON_ENABLED;
+ if (stderr_id)
register_console(&nf_console);
My understanding is that this should enable the console
when debug=nfcon kernel parameter is used.
It is a non-standard way. This is why CON_ENABLED flag
has to be explicitly set.
Understood. I will add a comment explaining why CON_ENABLED is set here.