diff options
Diffstat (limited to 'hardinfo2/hardinfo.c')
-rw-r--r-- | hardinfo2/hardinfo.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c index ebf65d9f..63609a3c 100644 --- a/hardinfo2/hardinfo.c +++ b/hardinfo2/hardinfo.c @@ -19,6 +19,7 @@ #include <config.h> #include <shell.h> +#include <report.h> #include <hardinfo.h> #include <iconcache.h> #include <stock.h> @@ -64,14 +65,15 @@ main(int argc, char **argv) shell_init(modules); gtk_main(); - - g_return_val_if_reached(0); } else if (params.create_report) { - g_print("creating report...\n"); + gchar *report; + + report = report_create_from_module_list_format(modules, + params.report_format); + g_print("%s", report); - g_return_val_if_reached(0); + g_free(report); } - /* should not be reached */ - g_return_val_if_reached(1); + return 0; } |