diff options
author | Toralf Förster <toralf.foerster@gmx.de> | 2014-05-19 12:26:31 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-21 23:54:42 +0400 |
commit | 8ecc1bad4c9b485ceb47182d282980d0b0fe20ac (patch) | |
tree | 16f81d9217a5b1d2ce1f6189191fb6350373e41a /arch/sparc | |
parent | 5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa (diff) | |
download | linux-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.tar.xz |
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/sysfs.c | 2 |
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; |