diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-26 17:03:30 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-26 17:03:30 +0000 |
commit | 83b3021873da4bb34db92c95398164196be7b18a (patch) | |
tree | c6b9bb7d07a97293c2ba5884d4dddc126b24048d /hardinfo2/hardinfo.c | |
parent | 2f4ae3a5d3404daff96fa70022f9e45d623fa720 (diff) |
Remove the need for modules.conf
Diffstat (limited to 'hardinfo2/hardinfo.c')
-rw-r--r-- | hardinfo2/hardinfo.c | 6 |
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; |