mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue