lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 25 Oct 2012 15:52:32 -0700
From:	Randy Dunlap <rdunlap@...otime.net>
To:	Fabio Estevam <fabio.estevam@...escale.com>
CC:	broonie@...nsource.wolfsonmicro.com, gregkh@...uxfoundation.org,
	linux-kernel@...r.kernel.org, festevam@...il.com
Subject: Re: [PATCH] regmap: Fix printing of size_t variable

On 10/25/2012 09:07 AM, Fabio Estevam wrote:

> val_bytes is of 'size_t', so it should be printed as '%zu'.
> 
> Fixes the following build warning on x86:
> 
> drivers/base/regmap/regmap.c:872:4: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat]
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>


Acked-by: Randy Dunlap <rdunlap@...otime.net>

http://marc.info/?l=linux-kernel&m=135041943424273&w=2


> ---
>  drivers/base/regmap/regmap.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
> index 0585726..cc90dfc 100644
> --- a/drivers/base/regmap/regmap.c
> +++ b/drivers/base/regmap/regmap.c
> @@ -869,7 +869,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
>  
>  		/* If the write goes beyond the end of the window split it */
>  		while (val_num > win_residue) {
> -			dev_dbg(map->dev, "Writing window %d/%d\n",
> +			dev_dbg(map->dev, "Writing window %d/%zu\n",
>  				win_residue, val_len / map->format.val_bytes);
>  			ret = _regmap_raw_write(map, reg, val, win_residue *
>  						map->format.val_bytes);



-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ