Re: [PATCH 1/1] platform/x86/intel/tpmi/plr: Make char[] longer to silence warning

From: Ilpo Järvinen
Date: Thu Dec 12 2024 - 09:48:28 EST


On Tue, 10 Dec 2024 16:01:14 +0200, Ilpo Järvinen wrote:

> W=1 build triggers this warning:
>
> drivers/platform/x86/intel/plr_tpmi.c:315:55: error: ‘snprintf’ output
> may be truncated before the last format character
> [-Werror=format-truncation=]
> 315 | snprintf(name, sizeof(name), "domain%d", i);
> | ^
> drivers/platform/x86/intel/plr_tpmi.c:315:17: note: ‘snprintf’ output
> between 8 and 17 bytes into a destination of size 16
> 315 | snprintf(name, sizeof(name), "domain%d", i);
>
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86/intel/tpmi/plr: Make char[] longer to silence warning
commit: 45ec7a0a788372ae3d83c1142ddde52ae09606e5

--
i.