From 6683b5efff591b0486dc3e8f44dcc741d97944f1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 29 Oct 2008 14:40:51 -0400 Subject: [PATCH] Clean up messages when loading plugins Remove a "got here" leftover, remove unnecessary trailing \n when calling g_message(), include g_module_error() in the output when loading a module fails. --- src/compositor/mutter/mutter-plugin-manager.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compositor/mutter/mutter-plugin-manager.c b/src/compositor/mutter/mutter-plugin-manager.c index b3be546da..632d8c08c 100644 --- a/src/compositor/mutter/mutter-plugin-manager.c +++ b/src/compositor/mutter/mutter-plugin-manager.c @@ -409,14 +409,12 @@ mutter_plugin_manager_load (MutterPluginManager *plugin_mgr) plugin_mgr->plugins = g_list_prepend (plugin_mgr->plugins, p); else { - g_message ("Plugin load for [%s] failed\n", path); + g_message ("Plugin load for [%s] failed", path); g_module_close (plugin); } } else - g_message ("Unable to load plugin [%s]\n", path); - - g_message ("got this far with [%s]\n", path); + g_message ("Unable to load plugin [%s]: %s", path, g_module_error()); g_free (path); g_free (plugin_string);