script: follow --logging-format on -t

Let's use new logic for timing file format also for old -t command
line option.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-01-15 13:01:06 +01:00
parent 01aedbecfe
commit 00130885ab
1 changed files with 1 additions and 5 deletions

View File

@ -865,11 +865,7 @@ int main(int argc, char **argv)
case 't':
if (optarg && *optarg == '=')
optarg++;
log_associate(&ctl, &ctl.out,
optarg ? optarg : "/dev/stderr",
SCRIPT_FMT_TIMING_SIMPLE);
/* used for message only */
timingfile = optarg ? optarg : "stderr";
timingfile = optarg ? optarg : "/dev/stderr";
break;
case 'T' :
timingfile = optarg;