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>
This commit is contained in:
Toralf Förster 2014-05-19 10:26:31 +02:00 committed by David S. Miller
parent 5aa4ecfd0d
commit 8ecc1bad4c

View 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;