drivers: flash: flash_stm32: Fix log warning
Cast the argument to "unsigned long" to avoid the warning Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
This commit is contained in:
parent
a0c1ca409e
commit
d7db52feb2
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ static int flash_stm32_check_status(const struct device *dev)
|
|||
|
||||
if (FLASH_STM32_REGS(dev)->FLASH_STM32_SR & FLASH_STM32_SR_ERRORS) {
|
||||
LOG_DBG("Status: 0x%08lx",
|
||||
FLASH_STM32_REGS(dev)->FLASH_STM32_SR &
|
||||
(unsigned long)FLASH_STM32_REGS(dev)->FLASH_STM32_SR &
|
||||
FLASH_STM32_SR_ERRORS);
|
||||
/* Clear errors to unblock usage of the flash */
|
||||
FLASH_STM32_REGS(dev)->FLASH_STM32_SR = FLASH_STM32_REGS(dev)->FLASH_STM32_SR &
|
||||
|
|
|
|||
Loading…
Reference in a new issue