mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 00:11:22 +00:00
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