mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
leds: ss4200: Fix the wrong format specifier for 'blinking'
The format specifier of "signed int" in sprintf() should be "%d", not "%u". Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241111065809.3814-1-zhujun2@cmss.chinamobile.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
8cb0810183
commit
e850185803
@ -451,7 +451,7 @@ static ssize_t blink_show(struct device *dev,
|
||||
int blinking = 0;
|
||||
if (nasgpio_led_get_attr(led, GPO_BLINK))
|
||||
blinking = 1;
|
||||
return sprintf(buf, "%u\n", blinking);
|
||||
return sprintf(buf, "%d\n", blinking);
|
||||
}
|
||||
|
||||
static ssize_t blink_store(struct device *dev,
|
||||
|
Loading…
Reference in New Issue
Block a user