[telepathy-gabble/master] Show plugins' version in debug output

Will Thompson will.thompson at collabora.co.uk
Thu Jan 21 04:53:53 PST 2010


---
 src/plugin-loader.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/plugin-loader.c b/src/plugin-loader.c
index 5a5cdb7..0917d77 100644
--- a/src/plugin-loader.c
+++ b/src/plugin-loader.c
@@ -89,9 +89,13 @@ plugin_loader_try_to_load (
     {
       gchar *sidecars = g_strjoinv (", ",
           (gchar **) gabble_plugin_get_sidecar_interfaces (plugin));
+      const gchar *version = gabble_plugin_get_version (plugin);
 
-      DEBUG ("loaded '%s' (%s), implementing these sidecars: %s",
-          gabble_plugin_get_name (plugin), path, sidecars);
+      if (version == NULL)
+        version = "(unspecified)";
+
+      DEBUG ("loaded '%s' version %s (%s), implementing these sidecars: %s",
+          gabble_plugin_get_name (plugin), version, path, sidecars);
 
       g_free (sidecars);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list