From: Toralf Förster Date: Mon, 19 May 2014 08:26:31 +0000 (+0200) Subject: sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c X-Git-Tag: firefly_0821_release~176^2~3874^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ecc1bad4c9b485ceb47182d282980d0b0fe20ac;p=firefly-linux-kernel-4.4.55.git sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c found by cppcheck Signed-off-by: Toralf Förster Acked-by: Sam Ravnborg Signed-off-by: David S. Miller --- 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;