drivers/spi: stm32: fix warning in SYS_LOG_ERR macro

Following log subsystem rework, a warning poped-up in SYS_LOG_ERR
in spi_stm32_get_err macro.
Fix it by casting SPI_STM32_ERR_MSK on (u32_t)

Fixes #10380

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-10-05 16:35:26 +02:00 committed by Anas Nashif
commit 85742e3c9a

View file

@ -54,7 +54,7 @@ static int spi_stm32_get_err(SPI_TypeDef *spi)
if (sr & SPI_STM32_ERR_MSK) {
SYS_LOG_ERR("%s: err=%d", __func__,
sr & SPI_STM32_ERR_MSK);
sr & (u32_t)SPI_STM32_ERR_MSK);
/* OVR error must be explicitly cleared */
if (LL_SPI_IsActiveFlag_OVR(spi)) {