[telepathy-mission-control/master] McdAccount: improve debug messages

Simon McVittie simon.mcvittie at collabora.co.uk
Thu May 14 05:51:57 PDT 2009


When tracking down crashes it's useful to know the address of the relevant
account at various points in its life cycle.
---
 src/mcd-account.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mcd-account.c b/src/mcd-account.c
index 5901d1d..1c25c7b 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -1694,7 +1694,7 @@ _mcd_account_finalize (GObject *object)
 {
     McdAccountPrivate *priv = MCD_ACCOUNT_PRIV (object);
 
-    DEBUG ("called for %s", priv->unique_name);
+    DEBUG ("%p (%s)", object, priv->unique_name);
     if (priv->changed_properties)
 	g_hash_table_destroy (priv->changed_properties);
     if (priv->property_values)
@@ -1725,7 +1725,7 @@ _mcd_account_dispose (GObject *object)
     McdAccount *self = MCD_ACCOUNT (object);
     McdAccountPrivate *priv = self->priv;
 
-    DEBUG ("called for %s", priv->unique_name);
+    DEBUG ("%p (%s)", object, priv->unique_name);
     if (priv->online_requests)
     {
         GError *error;
@@ -1784,6 +1784,8 @@ _mcd_account_constructed (GObject *object)
     GObjectClass *object_class = (GObjectClass *)mcd_account_parent_class;
     McdAccount *account = MCD_ACCOUNT (object);
 
+    DEBUG ("%p (%s)", object, account->priv->unique_name);
+
     mcd_account_setup (account);
 
     if (object_class->constructed)
-- 
1.5.6.5




More information about the telepathy-commits mailing list