aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/hardinfo.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-12-18 21:38:10 -0600
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-02-27 07:41:51 -0800
commit45bf74abab1b665143acbcd3d44e05793dd1b32d (patch)
treeb1c0fdbc2fe5f7623c6b4d8a22c79948203c3103 /hardinfo/hardinfo.c
parentc8785521f39c3a86454ade890018ca021272c621 (diff)
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 <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/hardinfo.c')
-rw-r--r--hardinfo/hardinfo.c1
1 files changed, 1 insertions, 0 deletions
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);
}