mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue