From: Sami Kerola Date: Wed, 11 Dec 2019 19:50:06 +0000 (+0000) Subject: script: fix typos [codespell] X-Git-Tag: v2.35-rc2~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac407b16503f0f990a31230e02a23eef80f15b8a;p=thirdparty%2Futil-linux.git script: fix typos [codespell] Signed-off-by: Sami Kerola --- diff --git a/term-utils/script-playutils.c b/term-utils/script-playutils.c index b08a4e25b8..3845619664 100644 --- a/term-utils/script-playutils.c +++ b/term-utils/script-playutils.c @@ -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; } diff --git a/term-utils/script.c b/term-utils/script.c index de95645903..ce3db17cc2 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -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; diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 359eb62959..b6894dd006 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -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)