]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: follow --logging-format on -t
authorKarel Zak <kzak@redhat.com>
Wed, 15 Jan 2020 12:01:06 +0000 (13:01 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Jan 2020 12:01:06 +0000 (13:01 +0100)
Let's use new logic for timing file format also for old -t command
line option.

Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index ce3db17cc21d53d28ff86545be1b3877d3fc4789..bafa6318c0873386bc261eb3b9dc9f97f3338851 100644 (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;