Skip to content

Commit

Permalink
transport: Print owner information when it exit or release
Browse files Browse the repository at this point in the history
This prints the owner name when it exits/quits/crash or releases a
transport.
  • Loading branch information
Vudentz committed Jan 17, 2024
1 parent 62cf4a2 commit e108c74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions profiles/audio/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ static void media_owner_exit(DBusConnection *connection, void *user_data)
{
struct media_owner *owner = user_data;

DBG("Owner %s", owner->name);

owner->watch = 0;

media_owner_remove(owner);
Expand Down Expand Up @@ -742,6 +744,8 @@ static DBusMessage *release(DBusConnection *conn, DBusMessage *msg,
if (owner == NULL || g_strcmp0(owner->name, sender) != 0)
return btd_error_not_authorized(msg);

DBG("Owner %s", owner->name);

if (owner->pending) {
const char *member;

Expand Down

0 comments on commit e108c74

Please sign in to comment.