Skip to content
Permalink
Browse files

Power: Fix various spurious LOG_ERR calls

These events aren't errors at all, but rather part of normal operation.
They shouldn't trigger error messages, especially given that the console
gets absolutely flooded with them if power management is activated.

Signed-off-by: Benjamin Lindqvist <benjamin.lindqvist@endian.se>
  • Loading branch information...
endian-benjamin authored and nashif committed Jun 4, 2019
1 parent a2c84ec commit f194982fa36a90c5ff032f4bdd1ca0f8953c5d7e
@@ -22,7 +22,7 @@ void sys_set_power_state(enum power_states state)
#endif
#endif
default:
LOG_ERR("Unsupported power state %u", state);
LOG_DBG("Unsupported power state %u", state);
break;
}
}
@@ -39,7 +39,7 @@ void _sys_pm_power_state_exit_post_ops(enum power_states state)
#endif
#endif
default:
LOG_ERR("Unsupported power state %u", state);
LOG_DBG("Unsupported power state %u", state);
break;
}

@@ -49,4 +49,3 @@ void _sys_pm_power_state_exit_post_ops(enum power_states state)
*/
irq_unlock(0);
}

@@ -22,7 +22,7 @@ void sys_set_power_state(enum power_states state)
#endif
#endif
default:
LOG_ERR("Unsupported power state %u", state);
LOG_DBG("Unsupported power state %u", state);
break;
}
}
@@ -39,7 +39,7 @@ void _sys_pm_power_state_exit_post_ops(enum power_states state)
#endif
#endif
default:
LOG_ERR("Unsupported power state %u", state);
LOG_DBG("Unsupported power state %u", state);
break;
}

@@ -49,4 +49,3 @@ void _sys_pm_power_state_exit_post_ops(enum power_states state)
*/
irq_unlock(0);
}

@@ -53,7 +53,7 @@ void sys_set_power_state(enum power_states state)
#endif /* CONFIG_HAS_SYS_POWER_STATE_SLEEP_3 */
#endif /* CONFIG_SYS_POWER_SLEEP_STATES */
default:
LOG_ERR("Unsupported power state %u", state);
LOG_DBG("Unsupported power state %u", state);
break;
}

@@ -50,7 +50,7 @@ enum power_states sys_pm_policy_next_state(s32_t ticks)
int i;

if ((ticks != K_FOREVER) && (ticks < pm_min_residency[0])) {
LOG_ERR("Not enough time for PM operations: %d", ticks);
LOG_DBG("Not enough time for PM operations: %d", ticks);
return SYS_POWER_STATE_ACTIVE;
}

0 comments on commit f194982

Please sign in to comment.
You can’t perform that action at this time.