summaryrefslogtreecommitdiff
path: root/hardinfo2/hardinfo.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-03-20 23:04:06 +0100
committerhwspeedy <ns@bigbear.dk>2024-03-20 23:04:06 +0100
commita966befe362cd5ae11ba43b4c284a6222d5998b8 (patch)
treeeed5c93fb2b4b03f4503fc247f29d9ab7e63affe /hardinfo2/hardinfo.c
parentf7534df1cdb6282cedf5a0c69b9cccda1213645d (diff)
FIX CLI updated with synchronize features, fix stop benchmark crash, libsoup3 debug fixed+added sync. comm for cli, DOCs updated, LibSoup3 enabled for distros supporting LS3
Diffstat (limited to 'hardinfo2/hardinfo.c')
-rw-r--r--hardinfo2/hardinfo.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/hardinfo2/hardinfo.c b/hardinfo2/hardinfo.c
index 1cf6603a..218b4298 100644
--- a/hardinfo2/hardinfo.c
+++ b/hardinfo2/hardinfo.c
@@ -59,16 +59,17 @@ int main(int argc, char **argv)
g_print(_("Compile-time options:\n"
" Release version: %s (%s)\n"
+ " LibSoup version: %s\n"
" BinReloc enabled: %s\n"
" Data prefix: %s\n"
" Library prefix: %s\n"
" Compiled for: %s\n"),
- RELEASE ? _("Yes") : "No (" VERSION ")", ARCH,
+ RELEASE==1 ? "Yes (" VERSION ")" : (RELEASE==0?"No (" VERSION ")":"Debug (" VERSION ")"), ARCH,
+ HARDINFO2_LIBSOUP3 ? _("3.0") : "2.4",
ENABLE_BINRELOC ? _("Yes") : _("No"),
PREFIX, LIBPREFIX, PLATFORM);
- DEBUG(" Debugging is enabled.");
-
+ return 0;
}
/* initialize the binreloc library, so we can load program data */
@@ -107,7 +108,7 @@ int main(int argc, char **argv)
result = module_call_method_param("benchmark::runBenchmark", params.run_benchmark);
if (!result) {
- fprintf(stderr, _("Unknown benchmark ``%s''"), params.run_benchmark);
+ fprintf(stderr, _("Unknown benchmark ``%s''\n"), params.run_benchmark);
exit_code = 1;
} else {
fprintf(stderr, "\n");
@@ -128,6 +129,10 @@ int main(int argc, char **argv)
/* generate report */
gchar *report;
+ if(params.bench_user_note) {//synchronize without sending benchmarks
+ sync_manager_update_on_startup(0);
+ }
+
DEBUG("generating report");
report = report_create_from_module_list_format(modules,
@@ -135,6 +140,11 @@ int main(int argc, char **argv)
report_format);
g_print("%s", report);
+ if(params.bench_user_note) {//synchronize
+ if(!params.skip_benchmarks)
+ sync_manager_update_on_startup(1);
+ }
+
g_free(report);
} else {
g_error(_("Don't know what to do. Exiting."));