Skip to content

Commit

Permalink
i2c: ismt: Use %pad specifier for dma_addr_t variables
Browse files Browse the repository at this point in the history
...which takes care of proper format and size of the value.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Andy Shevchenko authored and Wolfram Sang committed Dec 30, 2017
1 parent 3e5f06b commit 017fc4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/i2c/busses/i2c-ismt.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,7 @@ static int ismt_access(struct i2c_adapter *adap, u16 addr,
return -EIO;
}

dev_dbg(dev, " dma_addr = 0x%016llX\n",
(unsigned long long)dma_addr);
dev_dbg(dev, " dma_addr = %pad\n", &dma_addr);

desc->dptr_low = lower_32_bits(dma_addr);
desc->dptr_high = upper_32_bits(dma_addr);
Expand Down

0 comments on commit 017fc4f

Please sign in to comment.