diff options
author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-11-11 01:19:50 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-12 12:54:53 +0100 |
commit | 40e210a13759a81b1cbc780485728aa367360711 (patch) | |
tree | 91e437deda5acfb419c866946ab71033b91f4db4 /drivers/misc | |
parent | 03e6a10bbe60334ad9796086f6a77836b16b4070 (diff) | |
download | lwn-40e210a13759a81b1cbc780485728aa367360711.tar.gz lwn-40e210a13759a81b1cbc780485728aa367360711.zip |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/isl29020.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/isl29020.c b/drivers/misc/isl29020.c index 1643ba2ff964..c288aeec16c0 100644 --- a/drivers/misc/isl29020.c +++ b/drivers/misc/isl29020.c @@ -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, |