i2c: fix i2c-ismt.c printk format warning
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 15 Feb 2013 08:51:40 +0000 (08:51 +0000)
committerWolfram Sang <wolfram@the-dreams.de>
Fri, 15 Feb 2013 19:46:51 +0000 (20:46 +0100)
Fix printk format warning.  dma_addr_t can be 32-bit or 64-bit,
so cast it to long long for printing.  This also matches the
printk format specifier that is already used.

drivers/i2c/busses/i2c-ismt.c:532:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
drivers/i2c/busses/i2c-ismt.c

index 3f7a9cb..e9205ee 100644 (file)
@@ -530,7 +530,7 @@ static int ismt_access(struct i2c_adapter *adap, u16 addr,
                }
 
                dev_dbg(dev, " dma_addr = 0x%016llX\n",
-                       dma_addr);
+                       (unsigned long long)dma_addr);
 
                desc->dptr_low = lower_32_bits(dma_addr);
                desc->dptr_high = upper_32_bits(dma_addr);