summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-11-25 16:58:15 +0200
committerPekka Pessi <Pekka.Pessi@nokia.com>2010-11-25 21:42:52 +0200
commitee110e0e0b7cad3d1395c066eddd24ea78eb58bb (patch)
tree12a32bff42e44ec5c332e90d9a52af6d3dede708
parent89d81ffeda952059dd15e17387a716c629a7a347 (diff)
ring_properties_satisfy(): be quiet on channel types
-rw-r--r--src/ring-util.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/ring-util.c b/src/ring-util.c
index 5a3dd2d..e143e41 100644
--- a/src/ring-util.c
+++ b/src/ring-util.c
@@ -211,15 +211,25 @@ ring_properties_satisfy(GHashTable *requested_properties,
DEBUG("*** expecting %u for %s, got %u",
g_value_get_boolean(fixed), (char *)keyp, g_value_get_boolean(requested));
}
- else if (G_VALUE_HOLDS(requested, G_TYPE_STRING)) {
- if (!tp_strdiff(g_value_get_string(fixed), g_value_get_string(requested)))
- continue;
- DEBUG("*** expecting \"%s\" for %s, got \"%s\"",
- g_value_get_string(fixed), (char *)keyp, g_value_get_string(requested));
- }
- else {
- g_warning("*** fixed-properties contains %s ***", G_VALUE_TYPE_NAME(fixed));
- }
+ else if (G_VALUE_HOLDS (requested, G_TYPE_STRING))
+ {
+ char const *fixed_string = g_value_get_string (fixed);
+ char const *requested_string = g_value_get_string (requested);
+
+ if (!tp_strdiff (fixed_string, requested_string))
+ continue;
+
+ if (tp_strdiff (keyp, "org.freedesktop.Telepathy.Channel.ChannelType"))
+ {
+ DEBUG ("*** expecting \"%s\" for %s, got \"%s\"",
+ fixed_string, (char *)keyp, requested_string);
+ }
+ }
+ else
+ {
+ g_warning ("*** fixed-properties contains %s ***",
+ G_VALUE_TYPE_NAME (fixed));
+ }
return 0;
}