diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-12 00:25:53 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-26 20:13:41 +0100 |
commit | e527937779b990aeeaefd5e5224f6f899e2f67a7 (patch) | |
tree | 3861964fba2e701b72b0f17edfafd2928d07512b /src | |
parent | 9db3e9879db3d89984eea80dc6fd9b1c3c269e58 (diff) | |
download | riscv-openocd-e527937779b990aeeaefd5e5224f6f899e2f67a7.zip riscv-openocd-e527937779b990aeeaefd5e5224f6f899e2f67a7.tar.gz riscv-openocd-e527937779b990aeeaefd5e5224f6f899e2f67a7.tar.bz2 |
rtos: fix minor typos
Change-Id: I9ed4e2150a0a057397538b608d4a72bc48d0d64f
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5759
Tested-by: jenkins
Diffstat (limited to 'src')
-rw-r--r-- | src/rtos/FreeRTOS.c | 2 | ||||
-rw-r--r-- | src/rtos/chromium-ec.c | 2 | ||||
-rw-r--r-- | src/rtos/linux.c | 2 | ||||
-rw-r--r-- | src/rtos/nuttx.c | 2 | ||||
-rw-r--r-- | src/rtos/rtos.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c index c45d9d6..9a51974 100644 --- a/src/rtos/FreeRTOS.c +++ b/src/rtos/FreeRTOS.c @@ -245,7 +245,7 @@ static int FreeRTOS_update_threads(struct rtos *rtos) return ERROR_FAIL; } uint64_t top_used_priority = 0; - /* FIXME: endianess error on almost all target_read_buffer(), see also + /* FIXME: endianness error on almost all target_read_buffer(), see also * other rtoses */ retval = target_read_buffer(rtos->target, rtos->symbols[FreeRTOS_VAL_uxTopUsedPriority].address, diff --git a/src/rtos/chromium-ec.c b/src/rtos/chromium-ec.c index 92ed2cb..ae12a3b 100644 --- a/src/rtos/chromium-ec.c +++ b/src/rtos/chromium-ec.c @@ -306,7 +306,7 @@ static int chromium_ec_update_threads(struct rtos *rtos) LOG_ERROR("Failed to get task %d's runtime", t); runtime = target_buffer_get_u64(rtos->target, runtime_buf); - /* Priority is simply the positon in the array */ + /* Priority is simply the position in the array */ if (thread_ptr == current_task) snprintf(thread_str_buf, sizeof(thread_str_buf), "State: Running, Priority: %u, Events: %" PRIx32 ", Runtime: %" PRIu64 "\n", diff --git a/src/rtos/linux.c b/src/rtos/linux.c index 63659bb..cd1ed21 100644 --- a/src/rtos/linux.c +++ b/src/rtos/linux.c @@ -188,7 +188,7 @@ static int linux_os_thread_reg_list(struct rtos *rtos, return ERROR_FAIL; } - /* search target to perfom the access */ + /* search target to perform the access */ struct reg **gdb_reg_list; struct target_list *head; head = target->head; diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c index 322c7d1..3c90625 100644 --- a/src/rtos/nuttx.c +++ b/src/rtos/nuttx.c @@ -174,7 +174,7 @@ static int rcmd_offset(const char *cmd, const char *name) static int nuttx_thread_packet(struct connection *connection, char const *packet, int packet_size) { - char cmd[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for nul-termination */ + char cmd[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for null-termination */ if (!strncmp(packet, "qRcmd", 5)) { size_t len = unhexify((uint8_t *)cmd, packet + 6, sizeof(cmd)); diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index ca31d22..97ce255 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -231,7 +231,7 @@ int rtos_qsymbol(struct connection *connection, char const *packet, int packet_s int rtos_detected = 0; uint64_t addr = 0; size_t reply_len; - char reply[GDB_BUFFER_SIZE + 1], cur_sym[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for nul-termination */ + char reply[GDB_BUFFER_SIZE + 1], cur_sym[GDB_BUFFER_SIZE / 2 + 1] = ""; /* Extra byte for null-termination */ symbol_table_elem_t *next_sym = NULL; struct target *target = get_target_from_connection(connection); struct rtos *os = target->rtos; |