Skip to content

Commit

Permalink
sfos: bluez5: Add debug logs to reasons leaving acquire.
Browse files Browse the repository at this point in the history
  • Loading branch information
jusa committed Mar 22, 2019
1 parent 758a06d commit 9f1d09e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/bluetooth/backend-ofono.c
Expand Up @@ -229,6 +229,7 @@ static int hf_audio_agent_transport_acquire(pa_bluetooth_transport *t, bool opti
}

card->state = HF_AUDIO_CARD_DISCONNECTED;
pa_log_debug("transport acquire failed, return -1");
dbus_error_free(&derr);
return -1;
}
Expand All @@ -237,6 +238,7 @@ static int hf_audio_agent_transport_acquire(pa_bluetooth_transport *t, bool opti
r = NULL;

if (card->state == HF_AUDIO_CARD_CONNECTING) {
pa_log_debug("deferred setup, leave with -EAGAIN");
return -EAGAIN;
}
}
Expand Down Expand Up @@ -264,6 +266,8 @@ static int hf_audio_agent_transport_acquire(pa_bluetooth_transport *t, bool opti

card->state = HF_AUDIO_CARD_CONNECTED;

pa_log_debug("Leave with fd %d", card->fd);

return card->fd;
}

Expand Down

0 comments on commit 9f1d09e

Please sign in to comment.