arch/arm/src/lpc54xx/lpc54_i2c_master.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-28 09:33:33 +09:00 committed by Xiang Xiao
parent 080879ffef
commit b9b97348b2

View File

@ -46,6 +46,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@ -541,7 +542,7 @@ static bool lpc54_i2c_statemachine(struct lpc54_i2cdev_s *priv)
/* Get the state of the I2C module */
mstate = (status & I2C_STAT_MSTSTATE_MASK) >> I2C_STAT_MSTSTATE_SHIFT;
i2cinfo("mstate=%u\n", mstate);
i2cinfo("mstate=%" PRIu32 "\n", mstate);
if ((mstate == I2C_MASTER_STATE_ADDRNAK) ||
(mstate == I2C_MASTER_STATE_DATANAK))
@ -595,7 +596,7 @@ static bool lpc54_i2c_statemachine(struct lpc54_i2cdev_s *priv)
{
if (mstate != I2C_MASTER_STATE_TXOK)
{
i2cerr("ERROR bad state=%u, expected %u\n",
i2cerr("ERROR bad state=%" PRIu32 ", expected %u\n",
mstate, I2C_MASTER_STATE_TXOK);
priv->result = -EINVAL;
@ -621,7 +622,7 @@ static bool lpc54_i2c_statemachine(struct lpc54_i2cdev_s *priv)
{
if (mstate != I2C_MASTER_STATE_RXAVAIL)
{
i2cerr("ERROR bad state=%u, expected %u\n",
i2cerr("ERROR bad state=%" PRIu32 ", expected %u\n",
mstate, I2C_MASTER_STATE_RXAVAIL);
priv->result = -EINVAL;