summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-28 14:13:30 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-11 16:49:25 +0000
commitdf8c7546c913398d072c76d5aaf9fc4a00a93b4f (patch)
tree5ad4942fac21bf19bed02bd5e8d80f66c1aa39e8
parentc73bd6a29e23bdc7afa8a26be0fd6ade0065c03a (diff)
downloadtelepathy-glib-df8c7546c913398d072c76d5aaf9fc4a00a93b4f.tar.gz
Emit a new TpProtocol's immutable properties as debug messages
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--telepathy-glib/protocol.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c
index 9b23aab27..14213273b 100644
--- a/telepathy-glib/protocol.c
+++ b/telepathy-glib/protocol.c
@@ -512,7 +512,21 @@ tp_protocol_constructed (GObject *object)
}
else
{
+ GHashTableIter iter;
+ gpointer k, v;
+
DEBUG ("immutable properties already supplied");
+
+ g_hash_table_iter_init (&iter, self->priv->protocol_properties);
+
+ while (g_hash_table_iter_next (&iter, &k, &v))
+ {
+ gchar *printed;
+
+ printed = g_strdup_value_contents (v);
+ DEBUG ("%s = %s", (const gchar *) k, printed);
+ g_free (printed);
+ }
}
self->priv->protocol_struct.params = tp_protocol_params_from_param_specs (