Skip to content
Permalink
Browse files

drivers/i2s_ll_stm32.c: (FIX) Avoid warning in LOG_ERR

The LL_I2S_ReadReg() function returns uint32_t, while %d requires
'int' as a type.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
  • Loading branch information...
avisconti authored and galak committed May 3, 2019
1 parent d9d85fd commit 75a3ee5240c24830f8b7c1944361e08e33a1429b
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/i2s/i2s_ll_stm32.c
@@ -609,7 +609,7 @@ static void i2s_stm32_isr(void *arg)
struct i2s_stm32_data *const dev_data = DEV_DATA(dev);
struct stream *stream = &dev_data->rx;

LOG_ERR("%s: err=%d", __func__, LL_I2S_ReadReg(cfg->i2s, SR));
LOG_ERR("%s: err=%d", __func__, (int)LL_I2S_ReadReg(cfg->i2s, SR));
stream->state = I2S_STATE_ERROR;

/* OVR error must be explicitly cleared */

0 comments on commit 75a3ee5

Please sign in to comment.
You can’t perform that action at this time.