From db75710e03bdfa66aa972dcc4e30012364369046 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 20 Jun 2019 20:15:00 -0700 Subject: Show g_module_error() when loading a module --- hardinfo/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo') diff --git a/hardinfo/util.c b/hardinfo/util.c index 67e5b663..55517a50 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -747,7 +747,7 @@ static ShellModule *module_load(gchar * filename) tmp = g_build_filename(params.path_lib, "modules", filename, NULL); module->dll = g_module_open(tmp, G_MODULE_BIND_LAZY); - DEBUG("gmodule resource for ``%s'' is %p", tmp, module->dll); + DEBUG("gmodule resource for ``%s'' is %p (%s)", tmp, module->dll, g_module_error()); g_free(tmp); if (module->dll) { -- cgit v1.2.3