diff options
author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-11-10 22:58:09 -0800 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-11-12 14:39:26 +0000 |
commit | e8501858035b1f95468da525e7357c8c33811b88 (patch) | |
tree | 0511f120b2cd9ef1f84fdb2438552879341bf744 /drivers/leds | |
parent | 8cb08101835d98fd69cfa2a2b06146eddc057df6 (diff) |
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-ss4200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c index 2ef9fc7371bd..f24ca75c7cb1 100644 --- a/drivers/leds/leds-ss4200.c +++ b/drivers/leds/leds-ss4200.c @@ -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, |