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:
Zhu Jun 2024-11-10 22:58:09 -08:00 committed by Lee Jones
parent 8cb0810183
commit e850185803

View File

@ -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,