From cbf2bd715a6a3c5d758c52b4634284b260805d17 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 9 Jul 2013 21:51:14 -0600 Subject: [PATCH] lib: Fix spelling Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff Signed-off-by: Martin Roth Reviewed-on: http://review.coreboot.org/3756 Reviewed-by: Dave Frodin Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/lib/cbmem.c | 4 ++-- src/lib/cbmem_console.c | 4 ++-- src/lib/compute_ip_checksum.c | 2 +- src/lib/coreboot_table.c | 4 ++-- src/lib/fallback_boot.c | 2 +- src/lib/gcov-io.h | 6 +++--- src/lib/libgcov.c | 2 +- src/lib/lzma.c | 4 ++-- src/lib/memrange.c | 4 ++-- src/lib/ne2k.c | 2 +- src/lib/rmodule.c | 2 +- src/lib/selfboot.c | 2 +- src/lib/usbdebug.c | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c index 3702da1e1d..9e2ce0df84 100644 --- a/src/lib/cbmem.c +++ b/src/lib/cbmem.c @@ -90,7 +90,7 @@ void cbmem_init(u64 baseaddr, u64 size) 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 @@ void *cbmem_find(u32 id) } #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 efb8e86f83..de452d781d 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 @@ void cbmemc_tx_byte(unsigned char data) * 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 48f93d4699..58a6bf1ee4 100644 --- a/src/lib/compute_ip_checksum.c +++ b/src/lib/compute_ip_checksum.c @@ -40,7 +40,7 @@ unsigned long add_ip_checksums(unsigned long offset, unsigned long sum, unsigned 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 d25b59d43d..3fad4c7131 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -399,7 +399,7 @@ static unsigned long lb_table_fini(struct lb_header *head) /* 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 @@ unsigned long write_coreboot_table( /* 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 ce1ba851fe..b956c94a15 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 4502bd6f94..c5332eced2 100644 --- a/src/lib/gcov-io.h +++ b/src/lib/gcov-io.h @@ -174,7 +174,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #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 @@ typedef HOST_WIDEST_INT gcov_type; /* 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_summary 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 47a427ff3c..f37d0d2cde 100644 --- a/src/lib/libgcov.c +++ b/src/lib/libgcov.c @@ -396,7 +396,7 @@ gcov_exit (void) #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 cd60b3f3b2..674a029fd3 100644 --- a/src/lib/lzma.c +++ b/src/lib/lzma.c @@ -34,8 +34,8 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst) 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 1a16ef73ab..af56e72159 100644 --- a/src/lib/memrange.c +++ b/src/lib/memrange.c @@ -183,7 +183,7 @@ static void merge_add_memranges(struct memranges *ranges, 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 @@ void memranges_fill_holes_up_to(struct memranges *ranges, 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 31470fca08..b678d799c3 100644 --- a/src/lib/ne2k.c +++ b/src/lib/ne2k.c @@ -132,7 +132,7 @@ static unsigned char eth_pio_read_byte(unsigned int src, } -/* 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 b56ec322be..462c7d76f2 100644 --- a/src/lib/rmodule.c +++ b/src/lib/rmodule.c @@ -232,7 +232,7 @@ int rmodule_load_alignment(const struct rmodule *module) /* 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 4ebe10935d..2b69ac4531 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -361,7 +361,7 @@ static int build_self_segment_list( (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 200121ff5b..e425fbf05f 100644 --- a/src/lib/usbdebug.c +++ b/src/lib/usbdebug.c @@ -333,7 +333,7 @@ static int ehci_reset_port(struct ehci_regs *ehci_regs, int port) 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;