Re: [PATCH v4 17/20] platform/x86/intel/tpmi: Use scnprintf() to build the debugfs names
From: Ilpo Järvinen
Date: Tue Oct 13 2026 - 04:48:17 EST
On Mon, 12 Oct 2026, Andy Shevchenko wrote:
> On Tue, Oct 06, 2026 at 11:30:34AM -0700, Kuppuswamy Sathyanarayanan wrote:
> > snprintf() is on its way out in favour of scnprintf(). Neither of the two
> > callers in tpmi_dbgfs_register() looks at the return value, so the
> > difference in what the two return does not matter here.
>
> I believe I asked it already: Why do we care? Do you get any compilation
> warning (assuming `make W=1`)?
Hi Andy,
I do care that we've two functions for essentially the same thing and
would prefer to have just one that remains (and obviously that would be
the c variant).
--
i.