Commit 75a3ee52 authored by Armando Visconti's avatar Armando Visconti Committed by Kumar Gala
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: default avatarArmando Visconti <armando.visconti@st.com>
parent d9d85fd1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */