From: Sam Ravnborg <sam@ravnborg.org>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] fix format string mismatch in arch/sparc/kernel/sysfs.c
Date: Mon, 19 May 2014 08:48:39 +0000 [thread overview]
Message-ID: <20140519084839.GA8960@ravnborg.org> (raw)
In-Reply-To: <20140518185256.GB6194@ravnborg.org>
On Mon, May 19, 2014 at 10:26:31AM +0200, Toralf Förster wrote:
> found by cppcheck
>
> Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
> arch/sparc/kernel/sysfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c
> index a364000..7f41d40 100644
> --- a/arch/sparc/kernel/sysfs.c
> +++ b/arch/sparc/kernel/sysfs.c
> @@ -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;
> --
> 1.9.3
>
next prev parent reply other threads:[~2014-05-19 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-18 18:52 [PATCH] fix format string mismatch in arch/sparc/kernel/sysfs.c Sam Ravnborg
2014-05-19 8:26 ` Toralf Förster
2014-05-19 8:48 ` Sam Ravnborg [this message]
2014-05-21 19:55 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140519084839.GA8960@ravnborg.org \
--to=sam@ravnborg.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.