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>
This commit is contained in:
parent
d9d85fd1d3
commit
75a3ee5240
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ static void i2s_stm32_isr(void *arg)
|
||||||
struct i2s_stm32_data *const dev_data = DEV_DATA(dev);
|
struct i2s_stm32_data *const dev_data = DEV_DATA(dev);
|
||||||
struct stream *stream = &dev_data->rx;
|
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;
|
stream->state = I2S_STATE_ERROR;
|
||||||
|
|
||||||
/* OVR error must be explicitly cleared */
|
/* OVR error must be explicitly cleared */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue