projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e6a10
)
misc: isl29020: Fix the wrong format specifier
author
Zhu Jun
<zhujun2@cmss.chinamobile.com>
Mon, 11 Nov 2024 09:19:50 +0000
(
01:19
-0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 12 Nov 2024 11:54:53 +0000
(12:54 +0100)
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>
drivers/misc/isl29020.c
patch
|
blob
|
history
diff --git
a/drivers/misc/isl29020.c
b/drivers/misc/isl29020.c
index
1643ba2
..
c288aee
100644
(file)
--- 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, "%l
d
\n", lux);
+ return sprintf(buf, "%l
u
\n", lux);
}
static ssize_t als_sensing_range_store(struct device *dev,