/*
* 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.
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 */
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;
}
* 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 {
/* 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;
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)