script: fix typos [codespell]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
543f6b6cfc
commit
ac407b1650
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue