Re: [PATCHv2] i2c: i2c-imx: Fix format warning for dev_dbg
From: Wolfram Sang
Date: Wed Aug 06 2014 - 15:01:06 EST
On Wed, Aug 06, 2014 at 11:45:08AM +0800, Xiubo Li wrote:
> drivers/i2c/busses/i2c-imx.c: In function i2c_imx_probe()
> drivers/i2c/busses/i2c-imx.c:689:2: warning: format 0x%x expects argument
> of type unsigned int, but argument 4 has type resource_size_t [-Wformat=]
> dev_dbg(&i2c_imx->adapter.dev, "device resources from 0x%x to 0x%x\n",
> ^
> drivers/i2c/busses/i2c-imx.c:689:2: warning: format 0x%x expects argument
> of type unsigned int, but argument 5 has type resource_size_t [-Wformat=]
>
> drivers/i2c/busses/i2c-imx.c:691:2: warning: format %d expects argument
> of type int, but argument 4 has type resource_size_t [-Wformat=]
> dev_dbg(&i2c_imx->adapter.dev, "allocated %d bytes at 0x%x\n",
> ^
> drivers/i2c/busses/i2c-imx.c:691:2: warning: format 0x%x expects argument
> of type unsigned int, but argument 5 has type resource_size_t [-Wformat=]
>
> Signed-off-by: Xiubo Li <Li.Xiubo@xxxxxxxxxxxxx>
Applied to for-next, thanks!
Attachment:
signature.asc
Description: Digital signature