script: default to new format when new features expected

The old format should be the default for stdout only.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-06-20 11:50:15 +02:00
parent 0d955cd8ac
commit d628e9cf7c
1 changed files with 4 additions and 1 deletions

View File

@ -1063,8 +1063,11 @@ int main(int argc, char **argv)
}
if (timingfile) {
/* the old SCRIPT_FMT_TIMING_SIMPLE should be used when
* recoding output only (just for backward compatibility),
* otherwise switch to new format. */
if (!format)
format = outfile && infile ?
format = infile || (outfile && infile) ?
SCRIPT_FMT_TIMING_MULTI :
SCRIPT_FMT_TIMING_SIMPLE;