Re: [PATCH v6 1/6] printk: Save console options for add_preferred_console_match()

Tony Lindgren
2024-02-14T08:49:40Z

* Andy Shevchenko <andriy.shevchenko@linux.intel.com> [240213 16:42]:
> strscpy(con->name, str, namelen);
> strscpy(con->opt, opt, optlen); // not sure if emptying opt is okay

The strings above now get terminated too sort with the + 1 removed,
I suggest we use what we already do for brl_opt:

strscpy(con->name, str, CONSOLE_NAME_MAX);
strscpy(con->opt, opt, CONSOLE_OPT_MAX);

Regards,

Tony