sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
authorToralf Förster <toralf.foerster@gmx.de>
Mon, 19 May 2014 08:26:31 +0000 (10:26 +0200)
committerDavid 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

index a364000ca1aa8a495f7e8b9bf59882350f41c6de..7f41d40b7e6e8ccf89b5ce12a9422bbf4e84ac2e 100644 (file)
@@ -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;