Skip to content

Commit e850185

Browse files
Zhu Junlag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 8cb0810 commit e850185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-ss4200.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static ssize_t blink_show(struct device *dev,
451451
int blinking = 0;
452452
if (nasgpio_led_get_attr(led, GPO_BLINK))
453453
blinking = 1;
454-
return sprintf(buf, "%u\n", blinking);
454+
return sprintf(buf, "%d\n", blinking);
455455
}
456456

457457
static ssize_t blink_store(struct device *dev,

0 commit comments

Comments
 (0)