Re: (subset) [PATCH v2 1/1] leds: core: Bail out when composed name can't fit the buffer

From: Lee Jones
Date: Fri Apr 04 2025 - 08:44:45 EST


On Tue, 18 Mar 2025 18:04:29 +0200, Andy Shevchenko wrote:
> GCC compiler complains about snprintf() calls that may potentially cut
> the output:
>
> drivers/leds/led-core.c:551:78: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
> drivers/leds/led-core.c:554:78: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
> ...
>
> [...]

Applied, thanks!

[1/1] leds: core: Bail out when composed name can't fit the buffer
commit: 8f5b950b7791479db918c750e1c762b2b30435e6

--
Lee Jones [李琼斯]