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:
Родитель
5aa4ecfd0d
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче