Skip to content

Commit

Permalink
i2c: fix i2c-ismt.c printk format warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
rddunlap authored and wsakernel committed Feb 15, 2013
1 parent a3fc0ff commit 724d5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-ismt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 724d5ed

Please sign in to comment.