i2c: imx: Fix format warning for dev_dbg
authorXiubo Li <Li.Xiubo@freescale.com>
Wed, 6 Aug 2014 03:45:08 +0000 (11:45 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 6 Aug 2014 18:58:50 +0000 (20:58 +0200)
Fixes the following by using %pR:

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",
  ^
...

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c

index aa8bc146718bfc13c562e11322ddf36d9442f2c7..613069bc561a9325159f8591f56ceb663aa85cef 100644 (file)
@@ -735,10 +735,7 @@ static int i2c_imx_probe(struct platform_device *pdev)
        clk_disable_unprepare(i2c_imx->clk);
 
        dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq);
-       dev_dbg(&i2c_imx->adapter.dev, "device resources from 0x%x to 0x%x\n",
-               res->start, res->end);
-       dev_dbg(&i2c_imx->adapter.dev, "allocated %d bytes at 0x%x\n",
-               resource_size(res), res->start);
+       dev_dbg(&i2c_imx->adapter.dev, "device resources: %pR\n", res);
        dev_dbg(&i2c_imx->adapter.dev, "adapter name: \"%s\"\n",
                i2c_imx->adapter.name);
        dev_info(&i2c_imx->adapter.dev, "IMX I2C adapter registered\n");