diff options
author | Will Newton <will.newton@linaro.org> | 2014-04-08 10:18:16 +0100 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-04-11 16:05:03 +0100 |
commit | 970c602aa60bb29845c445c18d7b20f7c4552b78 (patch) | |
tree | 734a1f22c1c51cf3cd9d8c94e42a0f0e4a41ab5a /benchtests/bench-timing-type.c | |
parent | 36875b06e0ed7f137190b9228bef553adfc338ba (diff) | |
download | glibc-970c602aa60bb29845c445c18d7b20f7c4552b78.zip glibc-970c602aa60bb29845c445c18d7b20f7c4552b78.tar.gz glibc-970c602aa60bb29845c445c18d7b20f7c4552b78.tar.bz2 |
benchtests: Improve readability of JSON output
Add a small library to print JSON values and use it to improve the
readability of the benchmark output and the readability of the
benchmark code.
ChangeLog:
2014-04-11 Will Newton <will.newton@linaro.org>
* benchtests/Makefile (extra-objs): Add json-lib.o.
(bench-func): Tidy up JSON output.
* benchtests/bench-skeleton.c: Include json-lib.h.
(main): Use JSON library functions to do output of
benchmark results.
* benchtests/bench-timing-type.c (main): Output the
timing type simply, leaving formatting to the user.
* benchtests/json-lib.c: New file.
* benchtests/json-lib.h: Likewise.
Diffstat (limited to 'benchtests/bench-timing-type.c')
-rw-r--r-- | benchtests/bench-timing-type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-timing-type.c b/benchtests/bench-timing-type.c index 903a61f..64219ff 100644 --- a/benchtests/bench-timing-type.c +++ b/benchtests/bench-timing-type.c @@ -22,6 +22,6 @@ int main (int argc, char **argv) { - printf ("\"timing-type\": \"%s\"\n", TIMING_TYPE); + puts (TIMING_TYPE); return 0; } |