From 80d26d996ee33da0934b66be7a747b9d1ca5fffa Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Tue, 23 Nov 2021 09:28:58 -0800 Subject: [PATCH] drivers: led_pwm: Fix log message The log message was using the uninitialized variable state. Signed-off-by: Flavio Ceolin --- drivers/led/led_pwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/led/led_pwm.c b/drivers/led/led_pwm.c index 4bf8d5b13b3..6be72c9930f 100644 --- a/drivers/led/led_pwm.c +++ b/drivers/led/led_pwm.c @@ -125,7 +125,8 @@ static int led_pwm_pm_action(const struct device *dev, enum pm_device_state state; const struct led_pwm *led_pwm = &config->led[i]; - LOG_DBG("Switching PWM %p to state %" PRIu32, led_pwm->dev, state); + LOG_DBG("PWM %p running pm action %" PRIu32, led_pwm->dev, + action); /* NOTE: temporary solution, deserves proper fix */ switch (action) {