mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
reserve: improve debug
This commit is contained in:
parent
392eff4628
commit
cc470c048b
1 changed files with 5 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ static DBusHandlerResult filter_handler(DBusConnection *c, DBusMessage *m, void
|
||||||
if (strcmp(name, d->service_name) != 0)
|
if (strcmp(name, d->service_name) != 0)
|
||||||
goto invalid;
|
goto invalid;
|
||||||
|
|
||||||
pw_log_debug(NAME" %p: acquired %s", d, name);
|
pw_log_debug(NAME" %p: acquired %s, %s", d, name, d->service_name);
|
||||||
|
|
||||||
d->owning = true;
|
d->owning = true;
|
||||||
|
|
||||||
|
|
@ -389,6 +389,8 @@ int rd_device_acquire(struct rd_device *d)
|
||||||
|
|
||||||
dbus_error_init(&error);
|
dbus_error_init(&error);
|
||||||
|
|
||||||
|
pw_log_debug(NAME"%p: reserve %s", d, d->service_name);
|
||||||
|
|
||||||
if ((res = dbus_bus_request_name(d->connection,
|
if ((res = dbus_bus_request_name(d->connection,
|
||||||
d->service_name,
|
d->service_name,
|
||||||
(d->priority < INT32_MAX ? DBUS_NAME_FLAG_ALLOW_REPLACEMENT : 0),
|
(d->priority < INT32_MAX ? DBUS_NAME_FLAG_ALLOW_REPLACEMENT : 0),
|
||||||
|
|
@ -456,6 +458,8 @@ exit:
|
||||||
|
|
||||||
void rd_device_release(struct rd_device *d)
|
void rd_device_release(struct rd_device *d)
|
||||||
{
|
{
|
||||||
|
pw_log_debug(NAME" %p: release %d", d, d->owning);
|
||||||
|
|
||||||
if (d->owning) {
|
if (d->owning) {
|
||||||
DBusError error;
|
DBusError error;
|
||||||
dbus_error_init(&error);
|
dbus_error_init(&error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue