Fix minor typos

This commit is contained in:
Yuri Chornoivan 2020-07-09 20:14:32 +03:00
parent 1f4009146a
commit 311e33afef
19 changed files with 23 additions and 23 deletions

View File

@ -681,7 +681,7 @@ struct loop_info64 *loopcxt_get_info(struct loopdev_cxt *lc)
/*
* @lc: context
*
* Returns (allocated) string with path to the file assicieted
* Returns (allocated) string with path to the file associated
* with the current loop device.
*/
char *loopcxt_get_backing_file(struct loopdev_cxt *lc)

View File

@ -123,7 +123,7 @@ void random_get_bytes(void *buf, size_t nbytes)
break;
} else if (errno == EAGAIN && lose_counter < UL_RAND_READ_ATTEMPTS) {
xusleep(UL_RAND_READ_DELAY); /* no etropy, wait and try again */
xusleep(UL_RAND_READ_DELAY); /* no entropy, wait and try again */
lose_counter++;
} else
break;

View File

@ -220,7 +220,7 @@ struct blkid_struct_probe
#define BLKID_FL_TINY_DEV (1 << 2) /* <= 1.47MiB (floppy or so) */
#define BLKID_FL_CDROM_DEV (1 << 3) /* is a CD/DVD drive */
#define BLKID_FL_NOSCAN_DEV (1 << 4) /* do not scan this device */
#define BLKID_FL_MODIF_BUFF (1 << 5) /* cached bufferes has been modified */
#define BLKID_FL_MODIF_BUFF (1 << 5) /* cached buffers has been modified */
/* private per-probing flags */
#define BLKID_PROBE_FL_IGNORE_PT (1 << 1) /* ignore partition table */

View File

@ -693,9 +693,9 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, uint64_t off, uint64_t len
* blkid_probe_reset_buffers:
* @pr: prober
*
* libblkid reuse all already read buffers from the device. The bufferes may be
* libblkid reuse all already read buffers from the device. The buffers may be
* modified by blkid_probe_hide_range(). This function reset and free all
* cached bufferes. The next blkid_do_probe() will read all data from the
* cached buffers. The next blkid_do_probe() will read all data from the
* device.
*
* Returns: <0 in case of failure, or 0 on success.
@ -1267,7 +1267,7 @@ int blkid_do_wipe(blkid_probe pr, int dryrun)
* according to the current libblkid probing result.
*
* Note that blkid_probe_hide_range() changes semantic of this function and
* cached bufferes are not reset, but library uses in-memory modified
* cached buffers are not reset, but library uses in-memory modified
* buffers to call the next probing function.
*
* <example>

View File

@ -243,7 +243,7 @@ static int probe_udf(blkid_probe pr,
* terminated by the first sector which is not a valid
* descriptor.
* UDF-2.60 2.1.7: UDF 2.00 and lower revisions do not
* have requirement that NSR descritor is in Extended Area
* have requirement that NSR descriptor is in Extended Area
* (between BEA01 and TEA01) and that there is only one
* Extended Area. So do not stop scanning after TEA01. */
break;

View File

@ -868,7 +868,7 @@ static inline int add_to_partitions_array(
* partition table. The BLKPG_* ioctls are used for individual partitions. The
* advantage is that unmodified partitions maybe mounted.
*
* The function behavies like fdisk_reread_partition_table() on systems where
* The function behaves like fdisk_reread_partition_table() on systems where
* are no available BLKPG_* ioctls.
*
* Returns: <0 on error, or 0.

View File

@ -385,7 +385,7 @@ static inline int gpt_calculate_sizeof_entries(
sizeof(struct gpt_entry);
if (nents == 0 || esz == 0 || SIZE_MAX/esz < nents) {
DBG(GPT, ul_debug("entreis array size check failed"));
DBG(GPT, ul_debug("entries array size check failed"));
return -ERANGE;
}

View File

@ -1419,7 +1419,7 @@ int fdisk_partition_has_wipe(struct fdisk_context *cxt, struct fdisk_partition *
* If @pa is not specified or any @pa item is missing the libfdisk will ask by
* fdisk_ask_ API.
*
* The @pa template is is important for non-interactive partitioning,
* The @pa template is important for non-interactive partitioning,
* especially for MBR where is necessary to differentiate between
* primary/logical; this is done by start offset or/and partno.
* The rules for MBR:

View File

@ -1094,7 +1094,7 @@ const char *mnt_context_get_fstype(struct libmnt_context *cxt)
* @cxt: mount context
* @optstr: comma delimited mount options
*
* Note that that MS_MOVE cannot be specified as "string". It's operation that
* Note that MS_MOVE cannot be specified as "string". It's operation that
* is no supported in fstab (etc.)
*
* Returns: 0 on success, negative number in case of error.

View File

@ -488,7 +488,7 @@ static int __table_insert_fs(
* @pos is NULL than add the begin of the @tab if @before is 1; or to the tail
* of the @tb if @before is 0.
*
* This function inncrements reference to @fs. Don't forget to use
* This function increments reference to @fs. Don't forget to use
* mnt_unref_fs() after mnt_table_insert_fs() if you want to keep the @fs
* referenced by the table only.
*

View File

@ -222,7 +222,7 @@ static int group_state_for_line(struct libscols_group *gr, struct libscols_line
}
/*
* apply new @state to the chunk (addresesd by @xx) of grpset used for the group (@gr)
* apply new @state to the chunk (addressed by @xx) of grpset used for the group (@gr)
*/
static void grpset_apply_group_state(struct libscols_group **xx, int state, struct libscols_group *gr)
{

View File

@ -236,7 +236,7 @@ struct libscols_table {
colors_wanted :1, /* enable colors */
is_term :1, /* isatty() */
padding_debug :1, /* output visible padding chars */
is_dummy_print :1, /* printing used for width calcualion only */
is_dummy_print :1, /* printing used for width calculation only */
maxout :1, /* maximize output */
minout :1, /* minimize output (mutually exclusive to maxout) */
header_repeat :1, /* print header after libscols_table->termheight */

View File

@ -10,7 +10,7 @@ runuser \- run a command with substitute user and group ID
.RI [ user " [" argument "...]]"
.SH DESCRIPTION
.B runuser
can be used to to run commands with a substitute user and group ID.
can be used to run commands with a substitute user and group ID.
If the option \fB\-u\fR is not given, it falls back to
.BR su -compatible
semantics and a shell is executed.

View File

@ -318,7 +318,7 @@ int append_console(struct list_head *consoles, const char * const name)
struct console *restrict tail;
const struct console *last = NULL;
DBG(dbgprint("appenging %s", name));
DBG(dbgprint("appending %s", name));
if (!list_empty(consoles))
last = list_last_entry(consoles, struct console, entry);

View File

@ -342,7 +342,7 @@ static int blkzone_action(struct blkzone_control *ctl)
err(EXIT_FAILURE, _("%s: %s ioctl failed"),
ctl->devname, ctl->command->ioctl_name);
else if (ctl->verbose)
printf(_("%s: successfull %s of zones in range from %" PRIu64 ", to %" PRIu64),
printf(_("%s: successful %s of zones in range from %" PRIu64 ", to %" PRIu64),
ctl->devname,
ctl->command->name,
ctl->offset,

View File

@ -345,7 +345,7 @@ void set_sort_func_by_name(struct irq_output *out, const char *name)
else if (strcasecmp(name, "NAME") == 0)
out->sort_cmp_func = cmp_name;
else
errx(EXIT_FAILURE, _("unssupported column name to sort output"));
errx(EXIT_FAILURE, _("unsupported column name to sort output"));
}
void set_sort_func_by_key(struct irq_output *out, char c)

View File

@ -119,7 +119,7 @@ struct lscpu_desc {
char *mtid; /* maximum thread id (s390) */
char *addrsz; /* address sizes */
int dispatching; /* none, horizontal or vertical */
int freqboost; /* -1 if not evailable */
int freqboost; /* -1 if not available */
int mode; /* rm, lm or/and tm */
int ncpuspos; /* maximal possible CPUs */

View File

@ -1285,7 +1285,7 @@ static void termio_init(struct options *op, struct termios *tp)
ospeed = cfgetospeed(tp);
/* Save also the original speed to array of the speeds to make
* it possible to return the the original after unexpected BREAKs.
* it possible to return the original after unexpected BREAKs.
*/
if (op->numspeed)
op->speeds[op->numspeed++] = ispeed ? ispeed :

View File

@ -47,7 +47,7 @@ struct replay_step {
char type; /* 'I'nput, 'O'utput, ... */
size_t size;
char *name; /* signals / heders */
char *name; /* signals / headers */
char *value;
struct timeval delay;
@ -216,7 +216,7 @@ int replay_set_timing_file(struct replay_setup *stp, const char *filename)
rc = -ENOMEM;
else {
log->noseek = 1;
DBG(LOG, ul_debug("accociate file '%s' for streams 'SH'", filename));
DBG(LOG, ul_debug("associate file '%s' for streams 'SH'", filename));
}
}
@ -253,7 +253,7 @@ int replay_associate_log(struct replay_setup *stp,
if (rc == 0)
replay_new_log(stp, streams, filename, f);
DBG(LOG, ul_debug("accociate log file '%s', streams '%s' [rc=%d]", filename, streams, rc));
DBG(LOG, ul_debug("associate log file '%s', streams '%s' [rc=%d]", filename, streams, rc));
return rc;
}