]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: fix typos [codespell]
authorSami Kerola <kerolasa@iki.fi>
Wed, 11 Dec 2019 19:50:06 +0000 (19:50 +0000)
committerSami Kerola <kerolasa@iki.fi>
Wed, 11 Dec 2019 19:53:14 +0000 (19:53 +0000)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/script-playutils.c
term-utils/script.c
term-utils/scriptreplay.c

index b08a4e25b86fc704c8d3a1b49b940408069e61d2..3845619664e23df617e8798d7f2c7a15cfc92010 100644 (file)
@@ -25,7 +25,7 @@ UL_DEBUG_DEFINE_MASKNAMES(scriptreplay) = UL_DEBUG_EMPTY_MASKNAMES;
 /*
  * The script replay is driven by timing file where each entry describes one
  * step in the replay. The timing step may refer input or output (or
- * signal, extra informations, etc.)
+ * signal, extra information, etc.)
  *
  * The step data are stored in log files, the right log file for the step is
  * selected from replay_setup.
@@ -502,13 +502,13 @@ int replay_emit_step_data(struct replay_setup *stp, struct replay_step *step, in
                assert(step->name);
                assert(step->value);
                dprintf(fd, "%s %s\n", step->name, step->value);
-               DBG(LOG, ul_debug("log signal emited"));
+               DBG(LOG, ul_debug("log signal emitted"));
                return 0;
        case 'H':
                assert(step->name);
                assert(step->value);
                dprintf(fd, "%10s: %s\n", step->name, step->value);
-               DBG(LOG, ul_debug("log header emited"));
+               DBG(LOG, ul_debug("log header emitted"));
                return 0;
        default:
                break;          /* continue with real data */
@@ -565,6 +565,6 @@ int replay_emit_step_data(struct replay_setup *stp, struct replay_step *step, in
        if (ct && feof(step->data->fp))
                rc = 1;
 
-       DBG(LOG, ul_debug("log data emited [rc=%d size=%zu]", rc, step->size));
+       DBG(LOG, ul_debug("log data emitted [rc=%d size=%zu]", rc, step->size));
        return rc;
 }
index de95645903346c3a2d0398c75d7ab70159f3f1a0..ce3db17cc21d53d28ff86545be1b3877d3fc4789 100644 (file)
@@ -94,7 +94,7 @@ UL_DEBUG_DEFINE_MASKNAMES(script) = UL_DEBUG_EMPTY_MASKNAMES;
  * types of log files: "timing file" (simple or multistream) and "data file"
  * (raw).
  *
- * The same log file maybe be shared between both streams. For exmaple
+ * The same log file maybe be shared between both streams. For example
  * multi-stream timing file is possible to use for stdin as well as for stdout.
  */
 enum {
@@ -800,7 +800,7 @@ int main(int argc, char **argv)
 
        /* The default is to keep ECHO flag when stdin is not terminal. We need
         * it to make stdin (in case of "echo foo | script") log-able and
-        * visiable on terminal, and for backward compatibility.
+        * visible on terminal, and for backward compatibility.
         */
        ctl.isterm = isatty(STDIN_FILENO);
        echo = ctl.isterm ? 0 : 1;
index 359eb62959083559e46b2c720cf274e240a85b0f..b6894dd00643607017ecf2557003b0e2b5487bcd 100644 (file)
@@ -269,7 +269,7 @@ main(int argc, char *argv[])
                err(EXIT_FAILURE, _("cannot open %s"), log_io);
 
        if (!*streams) {
-               /* output is prefered default */
+               /* output is preferred default */
                if (log_out || log_io)
                        appendchr(streams, sizeof(streams), 'O');
                else if (log_in)