diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-03-17 03:22:12 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-17 07:25:25 +0100 |
commit | 33a17fd35995a7f679f92600055a8f55ae380022 (patch) | |
tree | aeced6708919d4275600e4883e9566582e3c8d63 /src/target | |
parent | 582b4195a99a21caa9522713fae659621137e0f9 (diff) | |
download | openocd_libswd-33a17fd35995a7f679f92600055a8f55ae380022.tar.gz openocd_libswd-33a17fd35995a7f679f92600055a8f55ae380022.tar.bz2 openocd_libswd-33a17fd35995a7f679f92600055a8f55ae380022.tar.xz openocd_libswd-33a17fd35995a7f679f92600055a8f55ae380022.zip |
Fix a bunch of typos.
Fix a bunch of typos.
Most are in code comments, so nothing should break. UNKOWN_COMMAND and
CMD_UNKOWN are not used elsewhere, so correcting the spelling should
also not break anything.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/armv7m.c | 2 | ||||
-rw-r--r-- | src/target/image.c | 2 | ||||
-rw-r--r-- | src/target/mips32.c | 2 | ||||
-rw-r--r-- | src/target/target.c | 2 | ||||
-rw-r--r-- | src/target/target.h | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/target/armv7m.c b/src/target/armv7m.c index 4fcde16f..fff5dd84 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -315,7 +315,7 @@ static int armv7m_run_and_wait(struct target *target, uint32_t entry_point, int armv7m->load_core_reg_u32(target, ARMV7M_REGISTER_CORE_GP, 15, &pc); if (exit_point && (pc != exit_point)) { - LOG_DEBUG("failed algoritm halted at 0x%" PRIx32 " ", pc); + LOG_DEBUG("failed algorithm halted at 0x%" PRIx32 " ", pc); return ERROR_TARGET_TIMEOUT; } diff --git a/src/target/image.c b/src/target/image.c index b0d957f8..454fc6c1 100644 --- a/src/target/image.c +++ b/src/target/image.c @@ -431,7 +431,7 @@ static int image_elf_read_headers(struct image *image) if ((elf->endianness != ELFDATA2LSB) &&(elf->endianness != ELFDATA2MSB)) { - LOG_ERROR("invalid ELF file, unknown endianess setting"); + LOG_ERROR("invalid ELF file, unknown endianness setting"); return ERROR_IMAGE_FORMAT_ERROR; } diff --git a/src/target/mips32.c b/src/target/mips32.c index e48a040c..79215b5f 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -351,7 +351,7 @@ static int mips32_run_and_wait(struct target *target, uint32_t entry_point, pc = buf_get_u32(mips32->core_cache->reg_list[MIPS32_PC].value, 0, 32); if (exit_point && (pc != exit_point)) { - LOG_DEBUG("failed algoritm halted at 0x%" PRIx32 " ", pc); + LOG_DEBUG("failed algorithm halted at 0x%" PRIx32 " ", pc); return ERROR_TARGET_TIMEOUT; } diff --git a/src/target/target.c b/src/target/target.c index 3a6c6bb4..be42b338 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1522,7 +1522,7 @@ int target_checksum_memory(struct target *target, uint32_t address, uint32_t siz return retval; } - /* convert to target endianess */ + /* convert to target endianness */ for (i = 0; i < (size/sizeof(uint32_t)); i++) { uint32_t target_data; diff --git a/src/target/target.h b/src/target/target.h index 2bf96689..d6e7431e 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -84,7 +84,7 @@ enum target_debug_reason DBG_REASON_UNDEFINED = 6 }; -enum target_endianess +enum target_endianness { TARGET_ENDIAN_UNKNOWN = 0, TARGET_BIG_ENDIAN = 1, TARGET_LITTLE_ENDIAN = 2 @@ -139,7 +139,7 @@ struct target uint32_t backup_working_area; /* whether the content of the working area has to be preserved */ struct working_area *working_areas;/* list of allocated working areas */ enum target_debug_reason debug_reason;/* reason why the target entered debug state */ - enum target_endianess endianness; /* target endianess */ + enum target_endianness endianness; /* target endianness */ // also see: target_state_name() enum target_state state; /* the current backend-state (running, halted, ...) */ struct reg_cache *reg_cache; /* the first register cache of the target (core regs) */ |