projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa4ecf
)
sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
author
Toralf Förster
<toralf.foerster@gmx.de>
Mon, 19 May 2014 08:26:31 +0000
(10:26 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 May 2014 19:54:42 +0000
(12:54 -0700)
found by cppcheck
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/sysfs.c
b/arch/sparc/kernel/sysfs.c
index a364000ca1aa8a495f7e8b9bf59882350f41c6de..7f41d40b7e6e8ccf89b5ce12a9422bbf4e84ac2e 100644
(file)
--- a/
arch/sparc/kernel/sysfs.c
+++ b/
arch/sparc/kernel/sysfs.c
@@
-151,7
+151,7
@@
static ssize_t store_mmustat_enable(struct device *s,
size_t count)
{
unsigned long val, err;
- int ret = sscanf(buf, "%l
d
", &val);
+ int ret = sscanf(buf, "%l
u
", &val);
if (ret != 1)
return -EINVAL;