diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2013-02-15 03:51:40 -0500 |
---|---|---|
committer | Wolfram Sang <wolfram@the-dreams.de> | 2013-02-15 14:46:51 -0500 |
commit | 724d5edac76d8c9a4198b74c80286df38ed81679 (patch) | |
tree | db004990d5da65c9a53b284daf1510bf538c6f3d /drivers/i2c/busses | |
parent | a3fc0ff00a46c4b32e7214961a5be9a1dc39b60e (diff) |
i2c: fix i2c-ismt.c printk format warning
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-ismt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c index 3f7a9cb6dfdd..e9205ee8cf94 100644 --- a/drivers/i2c/busses/i2c-ismt.c +++ b/drivers/i2c/busses/i2c-ismt.c | |||
@@ -530,7 +530,7 @@ static int ismt_access(struct i2c_adapter *adap, u16 addr, | |||
530 | } | 530 | } |
531 | 531 | ||
532 | dev_dbg(dev, " dma_addr = 0x%016llX\n", | 532 | dev_dbg(dev, " dma_addr = 0x%016llX\n", |
533 | dma_addr); | 533 | (unsigned long long)dma_addr); |
534 | 534 | ||
535 | desc->dptr_low = lower_32_bits(dma_addr); | 535 | desc->dptr_low = lower_32_bits(dma_addr); |
536 | desc->dptr_high = upper_32_bits(dma_addr); | 536 | desc->dptr_high = upper_32_bits(dma_addr); |