From 83b3021873da4bb34db92c95398164196be7b18a Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 26 Nov 2006 17:03:30 +0000 Subject: Remove the need for modules.conf --- hardinfo2/hardinfo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hardinfo2/hardinfo.c') 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; -- cgit v1.2.3