arch/arm/src/s32k1xx/s32k1xx_lpi2c.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-06 18:56:50 +09:00 committed by Xiang Xiao
parent 46974c29bd
commit cba6e69ccf

View File

@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@ -754,7 +755,7 @@ static inline void
* still pending.
*/
i2cinfo("Timeout with Status Register: %x\n", regval);
i2cinfo("Timeout with Status Register: %" PRIx32 "\n", regval);
}
/****************************************************************************
@ -1606,7 +1607,7 @@ static int s32k1xx_lpi2c_transfer(FAR struct i2c_master_s *dev,
{
ret = -ETIMEDOUT;
i2cerr("ERROR: Timed out: MCR: status: 0x%x\n", priv->status);
i2cerr("ERROR: Timed out: MCR: status: 0x%" PRIx32 "\n", priv->status);
}
/* Check for error status conditions */