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:
parent
0d955cd8ac
commit
d628e9cf7c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue