diff options
author | Toralf Förster <toralf.foerster@gmx.de> | 2014-05-19 10:26:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-21 12:54:42 -0700 |
commit | 8ecc1bad4c9b485ceb47182d282980d0b0fe20ac (patch) | |
tree | 16f81d9217a5b1d2ce1f6189191fb6350373e41a /arch/sparc/kernel | |
parent | 5aa4ecfd0ddb1e6dcd1c886e6c49677550f581aa (diff) | |
download | op-kernel-dev-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.zip op-kernel-dev-8ecc1bad4c9b485ceb47182d282980d0b0fe20ac.tar.gz |
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/kernel')
-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 a364000c..7f41d40 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; |