From 45bf74abab1b665143acbcd3d44e05793dd1b32d Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 18 Dec 2017 21:38:10 -0600 Subject: Add cli param to format result for -b For running benchmarks from the command line, add a new param to specify the output format: -g "conf" gives a line suitable for benchmark.conf -g "shell" gives the complete "moreinfo" shell data -g "short" (or nothing) gives the bench_value string as before Signed-off-by: Burt P --- hardinfo/hardinfo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hardinfo/hardinfo.c') diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c index 4401a551..3c0ade11 100644 --- a/hardinfo/hardinfo.c +++ b/hardinfo/hardinfo.c @@ -123,6 +123,7 @@ int main(int argc, char **argv) if (!result) { g_error(_("Unknown benchmark ``%s'' or libbenchmark.so not loaded"), params.run_benchmark); } else { + fprintf(stderr, "\n"); g_print("%s\n", result); g_free(result); } -- cgit v1.2.3