]> Git Repo - linux.git/commitdiff
sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
authorToralf Förster <[email protected]>
Mon, 19 May 2014 08:26:31 +0000 (10:26 +0200)
committerDavid S. Miller <[email protected]>
Wed, 21 May 2014 19:54:42 +0000 (12:54 -0700)
found by cppcheck

Signed-off-by: Toralf Förster <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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;
This page took 0.049124 seconds and 4 git commands to generate.