Skip to content

Commit

Permalink
sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Toralf Förster authored and David S. Miller committed May 21, 2014
1 parent 5aa4ecf commit 8ecc1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ecc1ba

Please sign in to comment.