util/cbfstool: Fix typos

Found by: util/lint/checkpatch.pl --types TYPO_SPELLING --fix-inplace
--strict --terse -f util/cbfstool/*.c

Change-Id: I13a27407bf2bad4b9fadcec8cdbd5889068f13cf
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38633
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Georgi 2020-01-29 13:31:16 +01:00
parent 805b291830
commit 01cfecc883
6 changed files with 8 additions and 8 deletions

View File

@ -115,7 +115,7 @@ int parse_elf_to_payload(const struct buffer *input, struct buffer *output,
} }
/* Now, regular headers - we only care about PT_LOAD headers, /* Now, regular headers - we only care about PT_LOAD headers,
* because thats what we're actually going to load * because that's what we're actually going to load
*/ */
for (i = 0; i < headers; i++) { for (i = 0; i < headers; i++) {

View File

@ -576,7 +576,7 @@ int cbfs_compact_instance(struct cbfs_image *image)
continue; continue;
/* At this point prev is an empty entry. Put the non-empty /* At this point prev is an empty entry. Put the non-empty
* file in prev's location. Then add a new emptry entry. This * file in prev's location. Then add a new empty entry. This
* essentialy bubbles empty entries towards the end. */ * essentialy bubbles empty entries towards the end. */
prev_size = cbfs_file_entry_size(prev); prev_size = cbfs_file_entry_size(prev);

View File

@ -658,7 +658,7 @@ void elf_init_eheader(Elf64_Ehdr *ehdr, int machine, int nbits, int endian)
} }
} }
/* Arbitray maximum number of sections. */ /* Arbitrary maximum number of sections. */
#define MAX_SECTIONS 16 #define MAX_SECTIONS 16
struct elf_writer_section { struct elf_writer_section {
Elf64_Shdr shdr; Elf64_Shdr shdr;

View File

@ -172,7 +172,7 @@ static inline size_t fit_free_space(struct fit_table *fit,
* This one is critical, as mentioned in Chapter 1.2.1 "FIT Ordering Rules" * This one is critical, as mentioned in Chapter 1.2.1 "FIT Ordering Rules"
* "Firmware Interface Table BIOS Specification". * "Firmware Interface Table BIOS Specification".
* *
* We need to use a stable sorting algortihm, as the order of * We need to use a stable sorting algorithm, as the order of
* FIT_TYPE_BIOS_STARTUP matter for measurements. * FIT_TYPE_BIOS_STARTUP matter for measurements.
*/ */
static void sort_fit_table(struct fit_table *fit) static void sort_fit_table(struct fit_table *fit)

View File

@ -387,7 +387,7 @@ static void alloc_buffer(struct buffer *b, size_t s, const char *n)
/* /*
* Read header/entry members in little-endian format. * Read header/entry members in little-endian format.
* Returns the offset upto which the read was performed. * Returns the offset up to which the read was performed.
*/ */
static size_t read_member(void *src, size_t offset, size_t size_bytes, static size_t read_member(void *src, size_t offset, size_t size_bytes,
void *dst) void *dst)
@ -415,7 +415,7 @@ static size_t read_member(void *src, size_t offset, size_t size_bytes,
/* /*
* Convert to little endian format. * Convert to little endian format.
* Returns the offset upto which the fixup was performed. * Returns the offset up to which the fixup was performed.
*/ */
static size_t fix_member(void *data, size_t offset, size_t size_bytes) static size_t fix_member(void *data, size_t offset, size_t size_bytes)
{ {
@ -677,7 +677,7 @@ static size_t read_subpart_buf(void *data, size_t size, struct bpdt_entry *e,
/* /*
* Sub-partitions in IFWI image are not in the same order as * Sub-partitions in IFWI image are not in the same order as
* in BPDT entries. BPDT entires are in header_order whereas * in BPDT entries. BPDT entries are in header_order whereas
* sub-partition offsets in the image are in pack_order. * sub-partition offsets in the image are in pack_order.
*/ */
if ((e[i].offset + e[i].size) > max_offset) if ((e[i].offset + e[i].size) > max_offset)

View File

@ -223,7 +223,7 @@ static int find_program_segment(struct rmod_context *ctx)
} }
if (nsegments != 1) { if (nsegments != 1) {
ERROR("Unexepcted number of loadable segments: %d.\n", ERROR("Unexpected number of loadable segments: %d.\n",
nsegments); nsegments);
return -1; return -1;
} }