Re: [PATCH] fix format string mismatch in arch/sparc/kernel/sysfs.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 18, 2014 at 07:51:00PM +0200, Toralf Förster wrote:
> found by cppcheck
> 
> Signed-off-by: Toralf Förster <toralf.foerster@xxxxxx>
Acked-by: Sam Ravnborg <sam@xxxxxxxxxxxx>


[Toralf - fist mail was accidently only sent to
 you - something looks fishy in the To: line of your mail]

> ---
>  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
> 
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux