drivers: led_pwm: Fix log message
The log message was using the uninitialized variable state. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
9adffd620a
commit
80d26d996e
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue