stm32h7:i2c use inttypes

This commit is contained in:
David Sidrane 2021-05-20 12:35:25 -07:00 committed by Xiang Xiao
parent 1a84314f5d
commit 8596fdd0bf
1 changed files with 2 additions and 2 deletions

View File

@ -886,8 +886,8 @@ static inline int stm32_i2c_sem_waitdone(FAR struct stm32_i2c_priv_s *priv)
while (priv->intstate != INTSTATE_DONE && elapsed < timeout); while (priv->intstate != INTSTATE_DONE && elapsed < timeout);
i2cinfo("intstate: %d elapsed: %ld threshold: %ld status: 0x%08x\n", i2cinfo("intstate: %d elapsed: %ld threshold: %ld status: 0x%08" PRIx32
priv->intstate, (long)elapsed, (long)timeout, priv->status); "\n", priv->intstate, (long)elapsed, (long)timeout, priv->status);
/* Set the interrupt state back to IDLE */ /* Set the interrupt state back to IDLE */