aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/hardinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/hardinfo.c')
-rw-r--r--hardinfo2/hardinfo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c
index e2a4a91c..32118cbc 100644
--- a/hardinfo2/hardinfo.c
+++ b/hardinfo2/hardinfo.c
@@ -55,11 +55,13 @@ main(int argc, char **argv)
if (params.list_modules) {
GSList *modules = modules_load_all();
- g_print("Module Name\t\tDynamic Loadable Module\n");
for (; modules; modules = modules->next) {
ShellModule *module = (ShellModule *) modules->data;
+ gchar *name = g_path_get_basename(g_module_name(module->dll));
- g_print("%s\t\t%s\n", module->name, g_module_name(module->dll));
+ g_print("%s (%s)\n", name, module->name);
+
+ g_free(name);
}
return 0;