mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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.
This commit is contained in:
parent
783e51281a
commit
6683b5efff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user