From: Uwe Hermann Date: Thu, 17 Mar 2011 02:22:12 +0000 (+0100) Subject: Fix a bunch of typos. X-Git-Tag: v0.5.0-rc1~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=33a17fd35995a7f679f92600055a8f55ae380022;p=openocd 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. --- diff --git a/src/flash/nand/mx2.c b/src/flash/nand/mx2.c index 6bad4aad..77ae1382 100644 --- a/src/flash/nand/mx2.c +++ b/src/flash/nand/mx2.c @@ -105,7 +105,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx27_nand_device_command) mx2_nf_info->flags.target_little_endian = (nand->target->endianness == TARGET_LITTLE_ENDIAN); /* - * testing host endianess + * testing host endianness */ x = 1; if (*(char *) &x == 1) diff --git a/src/flash/nand/mx3.c b/src/flash/nand/mx3.c index 41f08b5b..45591e39 100644 --- a/src/flash/nand/mx3.c +++ b/src/flash/nand/mx3.c @@ -100,7 +100,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) mx3_nf_info->flags.target_little_endian = (nand->target->endianness == TARGET_LITTLE_ENDIAN); /* - * testing host endianess + * testing host endianness */ { int x = 1; diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index f895935f..0b71e819 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -2684,7 +2684,7 @@ showall: (0 == strcmp("clear", CMD_ARGV[0]))) { // quietly accept both r = FLASHD_ClrGPNVM(&(pChip->details.bank[0]), who); } else { - command_print(CMD_CTX, "Unkown command: %s", CMD_ARGV[0]); + command_print(CMD_CTX, "Unknown command: %s", CMD_ARGV[0]); r = ERROR_COMMAND_SYNTAX_ERROR; } return r; diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 6a81047a..e57943cd 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -841,7 +841,7 @@ static int stellaris_protect(struct flash_bank *bank, int set, int first, int la * REVISIT DustDevil-A0 parts have an erratum making FMPPE commits * inadvisable ... it makes future mass erase operations fail. */ - LOG_WARNING("Flash protection cannot be removed once commited, commit is NOT executed !"); + LOG_WARNING("Flash protection cannot be removed once committed, commit is NOT executed !"); /* target_write_u32(target, FLASH_FMC, FMC_WRKEY | FMC_COMT); */ /* Wait until erase complete */ diff --git a/src/jtag/drivers/buspirate.c b/src/jtag/drivers/buspirate.c index 836a4d18..7813f330 100644 --- a/src/jtag/drivers/buspirate.c +++ b/src/jtag/drivers/buspirate.c @@ -45,7 +45,7 @@ static void buspirate_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size, struct scan_command *command); -#define CMD_UNKOWN 0x00 +#define CMD_UNKNOWN 0x00 #define CMD_PORT_MODE 0x01 #define CMD_FEATURE 0x02 #define CMD_READ_ADCS 0x03 diff --git a/src/jtag/drivers/usbprog.c b/src/jtag/drivers/usbprog.c index cc785556..17b01164 100644 --- a/src/jtag/drivers/usbprog.c +++ b/src/jtag/drivers/usbprog.c @@ -54,7 +54,7 @@ static void usbprog_path_move(struct pathmove_command *cmd); static void usbprog_runtest(int num_cycles); static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size); -#define UNKOWN_COMMAND 0x00 +#define UNKNOWN_COMMAND 0x00 #define PORT_DIRECTION 0x01 #define PORT_SET 0x02 #define PORT_GET 0x03 diff --git a/src/server/startup.tcl b/src/server/startup.tcl index 7801d1b0..64ace407 100644 --- a/src/server/startup.tcl +++ b/src/server/startup.tcl @@ -1,6 +1,6 @@ # Defines basic Tcl procs for OpenOCD server modules -# Handle GDB 'R' packet. Can be overriden by configuration script, +# Handle GDB 'R' packet. Can be overridden by configuration script, # but it's not something one would expect target scripts to do # normally proc ocd_gdb_restart {target_id} { diff --git a/src/svf/svf.c b/src/svf/svf.c index 6acf0325..0cca768d 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -402,7 +402,7 @@ COMMAND_HANDLER(handle_svf_command) svf_buffer_index = 0; // double the buffer size - // in case current command cannot be commited, and next command is a bit scan command + // in case current command cannot be committed, and next command is a bit scan command // here is 32K bits for this big scan command, it should be enough // buffer will be reallocated if buffer size is not enough svf_tdi_buffer = (uint8_t *)malloc(2 * SVF_MAX_BUFFER_SIZE_TO_COMMIT); 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) */