Re: [PATCH v5 17/20] platform/x86/intel/tpmi: Use scnprintf() to build the debugfs names

From: Andy Shevchenko

Date: Tue Oct 13 2026 - 15:52:31 EST


On Tue, Oct 13, 2026 at 12:29:32PM -0700, Kuppuswamy Sathyanarayanan wrote:
> The kernel has both snprintf() and scnprintf() for formatting into a
> fixed size buffer. The preference is to settle on scnprintf() and stop
> adding snprintf() users, so that only one of the two remains in use.
>
> Convert the two callers in tpmi_dbgfs_register(). Neither of them looks
> at the return value, so the difference in what the two functions return
> does not matter here.
>
> No functional change intended.

Okay with me, after a small discussion in previous review rounds.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko