Re: [PATCH v2 05/15] serial: core: replace snprintf with more robust scnprintf
From: Andy Shevchenko
Date: Thu Apr 30 2026 - 11:09:40 EST
On Tue, Apr 28, 2026 at 01:53:51PM -0400, Hugo Villeneuve wrote:
>
> Use scnprintf() so we could perhaps one day get rid of snprintf() entirely.
Ah, now I understand the approach in earlycon. Hmm... Still not sure which one
I prefer (it's not related to the contents of this patch anyway).
...
> default:
> strscpy(address, "*unknown*", sizeof(address));
Side note: This may use 2-argument strscpy().
--
With Best Regards,
Andy Shevchenko