client: rework printing of reports

Add a new printf-like function to allow printing of all fields at once
and rework all commands which print a report to use it. Add functions
for printing of headers and information fields, and formatting of IP
addresses and reference IDs.
This commit is contained in:
Miroslav Lichvar
2016-03-16 12:05:42 +01:00
parent b45f53dd20
commit 3f51805e62
3 changed files with 495 additions and 357 deletions

View File

@@ -14,7 +14,7 @@ chronyc_start="0.5"
chronyc_conf="tracking"
for year in `seq 1850 100 2300`; do
date="Jan 1 00:00:00 $year"
date="Jan 01 00:00:00 $year"
export CLKNETSIM_START_DATE=$(date -d "$date UTC" +'%s')
run_test || test_fail
check_chronyd_exit || test_fail