diff --git a/soc/st/stm32/common/stm32_wkup_pins.c b/soc/st/stm32/common/stm32_wkup_pins.c index 0ca40b9b2a9..2232efdd1e6 100644 --- a/soc/st/stm32/common/stm32_wkup_pins.c +++ b/soc/st/stm32/common/stm32_wkup_pins.c @@ -275,9 +275,8 @@ int stm32_pwr_wkup_pin_cfg_gpio(const struct gpio_dt_spec *gpio) } if (!found_gpio) { - LOG_DBG("Couldn't find a wake-up event corresponding to GPIO %s pin %d\n", + LOG_DBG("Couldn't find a wake-up event corresponding to GPIO %s pin %d", gpio->port->name, gpio->pin); - LOG_DBG("=> It cannot be used as a wake-up source\n"); return -EINVAL; }