提交 8ecc1bad 编写于 作者: T Toralf Förster 提交者: David S. Miller

sparc64: fix format string mismatch in arch/sparc/kernel/sysfs.c

found by cppcheck
Signed-off-by: NToralf Förster <toralf.foerster@gmx.de>
Acked-by: NSam Ravnborg <sam@ravnborg.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5aa4ecfd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册