lib: Fix spelling
Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/3756
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c
index 3702da1..9e2ce0d 100644
--- a/src/lib/cbmem.c
+++ b/src/lib/cbmem.c
@@ -90,7 +90,7 @@
for (;;) ;
}
- /* we don't need to call this in romstage, usefull only from ramstage */
+ /* we don't need to call this in romstage, useful only from ramstage */
#ifndef __PRE_RAM__
set_cbmem_toc((struct cbmem_entry *)(unsigned long)baseaddr);
#endif
@@ -205,7 +205,7 @@
}
#if CONFIG_EARLY_CBMEM_INIT || !defined(__PRE_RAM__)
-/* Returns True if it was not intialized before. */
+/* Returns True if it was not initialized before. */
int cbmem_initialize(void)
{
int rv = 0;
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c
index efb8e86..de452d7 100644
--- a/src/lib/cbmem_console.c
+++ b/src/lib/cbmem_console.c
@@ -24,7 +24,7 @@
/*
* Structure describing console buffer. It is overlaid on a flat memory area,
- * whith buffer_body covering the extent of the memory. Once the buffer is
+ * with buffer_body covering the extent of the memory. Once the buffer is
* full, the cursor keeps going but the data is dropped on the floor. This
* allows to tell how much data was lost in the process.
*/
@@ -138,7 +138,7 @@
* the CBMEM console buffer contents.
*
* If there is overflow - add to the destination area a string, reporting the
- * overflow and the number of dropped charactes.
+ * overflow and the number of dropped characters.
*/
static void copy_console_buffer(struct cbmem_console *new_cons_p)
{
diff --git a/src/lib/compute_ip_checksum.c b/src/lib/compute_ip_checksum.c
index 48f93d4..58a6bf1 100644
--- a/src/lib/compute_ip_checksum.c
+++ b/src/lib/compute_ip_checksum.c
@@ -40,7 +40,7 @@
new = ~new & 0xFFFF;
if (offset & 1) {
/* byte swap the sum if it came from an odd offset
- * since the computation is endian independant this
+ * since the computation is endian independent this
* works.
*/
new = ((new >> 8) & 0xff) | ((new << 8) & 0xff00);
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index d25b59d..3fad4c7 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -399,7 +399,7 @@
/* Routines to extract part so the coreboot table or
* information from the coreboot table after we have written it.
* Currently get_lb_mem relies on a global we can change the
- * implementaiton.
+ * implementation.
*/
static struct lb_memory *mem_ranges = NULL;
@@ -567,7 +567,7 @@
/* Record our GPIO settings (ChromeOS specific) */
lb_gpios(head);
- /* pass along the VDAT buffer adress */
+ /* pass along the VDAT buffer address */
lb_vdat(head);
/* pass along VBNV offsets in CMOS */
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c
index ce1ba85..b956c94 100644
--- a/src/lib/fallback_boot.c
+++ b/src/lib/fallback_boot.c
@@ -8,7 +8,7 @@
static void set_boot_successful(void)
{
- /* Remember I succesfully booted by setting
+ /* Remember I successfully booted by setting
* the initial boot direction
* to the direction that I booted.
*/
diff --git a/src/lib/gcov-io.h b/src/lib/gcov-io.h
index 4502bd6..c5332ec 100644
--- a/src/lib/gcov-io.h
+++ b/src/lib/gcov-io.h
@@ -174,7 +174,7 @@
#define BITS_PER_UNIT 8
#define LONG_LONG_TYPE_SIZE 64
-/* There are many gcc_assertions. Set the vaule to 1 if we want a warning
+/* There are many gcc_assertions. Set the value to 1 if we want a warning
message if the assertion fails. */
#ifndef ENABLE_ASSERT_CHECKING
#define ENABLE_ASSERT_CHECKING 1
@@ -335,7 +335,7 @@
/* Counters that are collected. */
#define GCOV_COUNTER_ARCS 0 /* Arc transitions. */
#define GCOV_COUNTERS_SUMMABLE 1 /* Counters which can be
- summaried. */
+ summed. */
#define GCOV_FIRST_VALUE_COUNTER 1 /* The first of counters used for value
profiling. They must form a consecutive
interval and their order must match
@@ -426,7 +426,7 @@
struct gcov_ctr_summary ctrs[GCOV_COUNTERS_SUMMABLE];
};
-/* Structures embedded in coveraged program. The structures generated
+/* Structures embedded in coverage program. The structures generated
by write_profile must match these. */
#if IN_LIBGCOV
diff --git a/src/lib/libgcov.c b/src/lib/libgcov.c
index 47a427f..f37d0d2 100644
--- a/src/lib/libgcov.c
+++ b/src/lib/libgcov.c
@@ -396,7 +396,7 @@
#endif
prefix_length = 0;
- /* If no prefix was specified and a prefix stip, then we assume
+ /* If no prefix was specified and a prefix strip, then we assume
relative. */
if (gcov_prefix_strip != 0 && prefix_length == 0)
{
diff --git a/src/lib/lzma.c b/src/lib/lzma.c
index cd60b3f..674a029 100644
--- a/src/lib/lzma.c
+++ b/src/lib/lzma.c
@@ -34,8 +34,8 @@
memcpy(properties, src, LZMA_PROPERTIES_SIZE);
/* The outSize in LZMA stream is a 64bit integer stored in little-endian
* (ref: lzma.cc@LZMACompress: put_64). To prevent accessing by
- * unaligned memory address and to load in correct endianess, read each
- * byte and re-costruct. */
+ * unaligned memory address and to load in correct endianness, read each
+ * byte and re-construct. */
cp = src + LZMA_PROPERTIES_SIZE;
outSize = cp[3] << 24 | cp[2] << 16 | cp[1] << 8 | cp[0];
if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {
diff --git a/src/lib/memrange.c b/src/lib/memrange.c
index 1a16ef7..af56e72 100644
--- a/src/lib/memrange.c
+++ b/src/lib/memrange.c
@@ -183,7 +183,7 @@
remove_memranges(ranges, begin, end, -1);
/* Find the entry to place the new entry after. Since
- * remove_memranges() was called above there is a guranteed
+ * remove_memranges() was called above there is a guaranteed
* spot for this new entry. */
for (cur = ranges->entries; cur != NULL; cur = cur->next) {
/* Found insertion spot before current entry. */
@@ -292,7 +292,7 @@
continue;
}
- /* If the previous entry does not directly preceed the current
+ /* If the previous entry does not directly precede the current
* entry then add a new entry just after the previous one. */
if (range_entry_end(prev) != cur->begin) {
resource_t end;
diff --git a/src/lib/ne2k.c b/src/lib/ne2k.c
index 31470fc..b678d79 100644
--- a/src/lib/ne2k.c
+++ b/src/lib/ne2k.c
@@ -132,7 +132,7 @@
}
-/* varition of compute_ip_checksum which works on SRAM */
+/* Variation of compute_ip_checksum which works on SRAM */
unsigned long compute_ip_checksum_from_sram(unsigned short offset, unsigned short length,
unsigned int eth_nic_base)
{
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c
index b56ec32..462c7d7 100644
--- a/src/lib/rmodule.c
+++ b/src/lib/rmodule.c
@@ -232,7 +232,7 @@
/* The load alignment is the start of the program's linked address.
* The base address where the program is loaded needs to be a multiple
* of the program's starting link address. That way all data alignment
- * in the program is presered. */
+ * in the program is preserved. */
return module->header->module_link_start_address;
}
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 4ebe109..2b69ac4 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -361,7 +361,7 @@
(void *)(intptr_t)ntohll(segment->load_addr));
*entry = ntohll(segment->load_addr);
/* Per definition, a payload always has the entry point
- * as last segment. Thus, we use the occurence of the
+ * as last segment. Thus, we use the occurrence of the
* entry point as break condition for the loop.
* Can we actually just look at the number of section?
*/
diff --git a/src/lib/usbdebug.c b/src/lib/usbdebug.c
index 200121f..e425fbf 100644
--- a/src/lib/usbdebug.c
+++ b/src/lib/usbdebug.c
@@ -333,7 +333,7 @@
if (!(portsc & PORT_CONNECT))
return -1; //-ENOTCONN;
- /* bomb out completely if something weird happend */
+ /* bomb out completely if something weird happened */
if ((portsc & PORT_CSC))
return -2; //-EINVAL;