fpi-ssm: Add debug message when a delayed state change is cancelled

This commit is contained in:
Marco Trevisan (Treviño) 2019-12-12 15:49:35 +01:00
parent 299a797423
commit 0471edbf10

View file

@ -213,6 +213,9 @@ on_delayed_action_cancelled (GCancellable *cancellable,
{
CancelledActionIdleData *data;
fp_dbg ("[%s] %s cancelled delayed state change",
fp_device_get_driver (machine->dev), machine->name);
g_clear_pointer (&machine->timeout, g_source_destroy);
data = g_new0 (CancelledActionIdleData, 1);
@ -469,6 +472,9 @@ fpi_ssm_cancel_delayed_state_change (FpiSsm *machine)
BUG_ON (machine->completed);
BUG_ON (machine->timeout == NULL);
fp_dbg ("[%s] %s cancelled delayed state change",
fp_device_get_driver (machine->dev), machine->name);
fpi_ssm_clear_delayed_action (machine);
}