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 21:54:42 +0200
commit8ecc1bad4c9b485ceb47182d282980d0b0fe20ac (patch)
tree16f81d9217a5b1d2ce1f6189191fb6350373e41a
parentsparc64: Add membar to Niagara2 memcpy code. (diff)
downloadlinux-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.tar.xz
linux-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.zip
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;