forked from luck/tmp_suning_uos_patched
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:
parent
5aa4ecfd0d
commit
8ecc1bad4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user