summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-10-20 05:37:35 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 16:33:06 +0200
commitdf26d5592ec8fc2ff026f30c562f3e5102263c65 (patch)
treefc78513bd3ebeee97ec00aad4808169c0519957a
parente6536da10f3bca2d3d73d0c190f43224e9603c25 (diff)
Make it easier to debug connection preparation by printing object paths in some cases
-rw-r--r--telepathy-glib/connection.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index faf86cdd..9b08fc3c 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -559,7 +559,8 @@ signal_connected (TpConnection *self)
{
/* we shouldn't have gone to status CONNECTED for any reason
* that isn't REQUESTED :-) */
- DEBUG ("%p: CORE and CONNECTED ready", self);
+ DEBUG ("%s (%p): CORE and CONNECTED ready",
+ tp_proxy_get_object_path (self), self);
self->priv->status = TP_CONNECTION_STATUS_CONNECTED;
self->priv->status_reason = TP_CONNECTION_STATUS_REASON_REQUESTED;
self->priv->ready = TRUE;
@@ -1360,6 +1361,8 @@ tp_connection_constructed (GObject *object)
if (object_class->constructed != NULL)
object_class->constructed (object);
+ DEBUG ("%s (%p) constructed", tp_proxy_get_object_path (object), object);
+
_tp_proxy_ensure_factory (self, NULL);
/* Connect to my own StatusChanged signal.
@@ -1383,8 +1386,6 @@ tp_connection_constructed (GObject *object)
static void
tp_connection_init (TpConnection *self)
{
- DEBUG ("%p", self);
-
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, TP_TYPE_CONNECTION,
TpConnectionPrivate);