mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
misc: isl29020: Fix the wrong format specifier
The format specifier of "unsigned long int" in sprintf() should be "%lu", not "%ld". Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20241111091950.4299-1-zhujun2@cmss.chinamobile.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
03e6a10bbe
commit
40e210a137
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ static ssize_t als_lux_input_data_show(struct device *dev,
|
|||
if (val < 0)
|
||||
return val;
|
||||
lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536;
|
||||
return sprintf(buf, "%ld\n", lux);
|
||||
return sprintf(buf, "%lu\n", lux);
|
||||
}
|
||||
|
||||
static ssize_t als_sensing_range_store(struct device *dev,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue