diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-06 04:20:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-06 04:20:12 +0200 |
commit | 4b521e5d24ef965345fcfe7ea1c63fbb4b687174 (patch) | |
tree | 55ade178e36a1d2c54c61278019ca18c24afb20e | |
parent | 90f4fdb0718f4cdef717c555fe2ed81ff59f6fce (diff) |
be a bit more verbose about the busses we are connected to
-rw-r--r-- | src/pulsecore/dbus-util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pulsecore/dbus-util.c b/src/pulsecore/dbus-util.c index 7302867f..b35e7478 100644 --- a/src/pulsecore/dbus-util.c +++ b/src/pulsecore/dbus-util.c @@ -28,6 +28,8 @@ #include <pulse/xmalloc.h> #include <pulse/timeval.h> + +#include <pulsecore/core-util.h> #include <pulsecore/log.h> #include "dbus-util.h" @@ -263,6 +265,11 @@ pa_dbus_wrap_connection* pa_dbus_wrap_connection_new(pa_mainloop_api *m, DBusBus pconn->dispatch_event = pconn->mainloop->defer_new(pconn->mainloop, dispatch_cb, conn); + pa_log_debug("Successfully connected to D-Bus %s bus %s as %s", + type == DBUS_BUS_SYSTEM ? "system" : (type == DBUS_BUS_SESSION ? "session" : "starter"), + pa_strnull(dbus_connection_get_server_id(conn)), + pa_strnull(dbus_bus_get_unique_name(conn))); + return pconn; } |