leds: ledtrig-activity: Fix the wrong format specifier
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/20241122064626.4680-1-zhujun2@cmss.chinamobile.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
609bc99a44
commit
6fcafd33d2
@ -156,7 +156,7 @@ static ssize_t led_invert_show(struct device *dev,
|
||||
{
|
||||
struct activity_data *activity_data = led_trigger_get_drvdata(dev);
|
||||
|
||||
return sprintf(buf, "%u\n", activity_data->invert);
|
||||
return sprintf(buf, "%d\n", activity_data->invert);
|
||||
}
|
||||
|
||||
static ssize_t led_invert_store(struct device *dev,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user