Skip to content

Commit 6fe0f2a

Browse files
aviscontinashif
authored andcommitted
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 <[email protected]>
1 parent c90b633 commit 6fe0f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2s/i2s_ll_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ static void i2s_stm32_isr(void *arg)
609609
struct i2s_stm32_data *const dev_data = DEV_DATA(dev);
610610
struct stream *stream = &dev_data->rx;
611611

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

615615
/* OVR error must be explicitly cleared */

0 commit comments

Comments
 (0)