]> www.infradead.org Git - users/hch/misc.git/commit
parisc: led: Use scnprintf() to avoid string truncation warning
authorHelge Deller <deller@gmx.de>
Sun, 9 Mar 2025 21:01:54 +0000 (22:01 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 9 Mar 2025 21:27:54 +0000 (22:27 +0100)
commite822b8f01b40eb193cf7ebb059ac7c560a562d6f
treed30d1f88442b02c492e559727abfec17f40ec20a
parent559eda6c3380b94e7e6ec60e5b7aa842763d18fa
parisc: led: Use scnprintf() to avoid string truncation warning

We intentionally truncate the string and store only up to 20 characters
since the LCD display does not provide more chars. For that use
scnprintf() instead of snprintf() to avoid the warning.

Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/led.c