i2c: i2c_xilinx_axi: Fix armclang compile warning
Use PRIxPTR macros to fix compiler warnings of the form: i2c_xilinx_axi.c:266:50: warning: format specifies type 'unsigned long' but the argument has type 'mem_addr_t' (aka 'unsigned int') [-Wformat] LOG_INF("Configuring %s at 0x%08lx", dev->name, config->base); ~~~~~ ^~~~~~~~~~~~ %08x Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
5aa1aaddc2
commit
fdf78377cd
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ static void i2c_xilinx_axi_isr(const struct device *dev)
|
|||
uint32_t ints_to_clear = int_status;
|
||||
uint32_t ints_to_mask = int_status;
|
||||
|
||||
LOG_DBG("ISR called for 0x%08lx, status 0x%02x", config->base, int_status);
|
||||
LOG_DBG("ISR called for 0x%08" PRIxPTR ", status 0x%02x", config->base, int_status);
|
||||
|
||||
if (int_status & ISR_ARB_LOST) {
|
||||
/* Must clear MSMS before clearing interrupt */
|
||||
|
@ -263,7 +263,7 @@ static int i2c_xilinx_axi_configure(const struct device *dev, uint32_t dev_confi
|
|||
{
|
||||
const struct i2c_xilinx_axi_config *config = dev->config;
|
||||
|
||||
LOG_INF("Configuring %s at 0x%08lx", dev->name, config->base);
|
||||
LOG_INF("Configuring %s at 0x%08" PRIxPTR, dev->name, config->base);
|
||||
i2c_xilinx_axi_reinit(config);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue