summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToralf Förster <toralf.foerster@gmx.de>2014-05-19 10:26:31 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-21 12:54:42 -0700
commit8ecc1bad4c9b485ceb47182d282980d0b0fe20ac (patch)
tree16f81d9217a5b1d2ce1f6189191fb6350373e41a
parent5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa (diff)
downloadlinux-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.tar.bz2
sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
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>
-rw-r--r--arch/sparc/kernel/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c
index a364000ca1aa..7f41d40b7e6e 100644
--- 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, "%ld", &val);
+ int ret = sscanf(buf, "%lu", &val);
if (ret != 1)
return -EINVAL;