diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2013-01-03 16:43:27 +0000 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2013-01-27 14:29:34 +0000 |
commit | 08fc7417333dc8ba4dd4ac15776ed2e9ede504bd (patch) | |
tree | 264fc96cf29cc2cef57b9d775113944e5d313bdd /src/rtos/eCos.c | |
parent | b5c616b90ec3e2e75d48dc6765b06a86ca44e05f (diff) |
rtos: do not use LOG_OUTPUT
LOG_OUTPUT is not intended for general output so use the correct LOG_*
functions instead.
Change-Id: I48d0fe765637024dbafc68f2ea08219d3ff42754
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1104
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/rtos/eCos.c')
-rw-r--r-- | src/rtos/eCos.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/rtos/eCos.c b/src/rtos/eCos.c index 7964712f..6a0ed4ec 100644 --- a/src/rtos/eCos.c +++ b/src/rtos/eCos.c @@ -115,12 +115,12 @@ static int eCos_update_threads(struct rtos *rtos) param = (const struct eCos_params *) rtos->rtos_specific_params; if (rtos->symbols == NULL) { - LOG_OUTPUT("No symbols for eCos\r\n"); + LOG_ERROR("No symbols for eCos"); return -4; } if (rtos->symbols[eCos_VAL_thread_list].address == 0) { - LOG_OUTPUT("Don't have the thread list head\r\n"); + LOG_ERROR("Don't have the thread list head"); return -2; } @@ -177,7 +177,7 @@ static int eCos_update_threads(struct rtos *rtos) 2, (uint8_t *)&rtos->current_thread); if (retval != ERROR_OK) { - LOG_OUTPUT("Could not read eCos current thread from target\r\n"); + LOG_ERROR("Could not read eCos current thread from target"); return retval; } @@ -224,7 +224,7 @@ static int eCos_update_threads(struct rtos *rtos) 2, (uint8_t *)&thread_id); if (retval != ERROR_OK) { - LOG_OUTPUT("Could not read eCos thread id from target\r\n"); + LOG_ERROR("Could not read eCos thread id from target"); return retval; } rtos->thread_details[tasks_found].threadid = thread_id; @@ -235,7 +235,7 @@ static int eCos_update_threads(struct rtos *rtos) param->pointer_width, (uint8_t *)&name_ptr); if (retval != ERROR_OK) { - LOG_OUTPUT("Could not read eCos thread name pointer from target\r\n"); + LOG_ERROR("Could not read eCos thread name pointer from target"); return retval; } @@ -246,7 +246,7 @@ static int eCos_update_threads(struct rtos *rtos) ECOS_THREAD_NAME_STR_SIZE, (uint8_t *)&tmp_str); if (retval != ERROR_OK) { - LOG_OUTPUT("Error reading thread name from eCos target\r\n"); + LOG_ERROR("Error reading thread name from eCos target"); return retval; } tmp_str[ECOS_THREAD_NAME_STR_SIZE-1] = '\x00'; @@ -265,7 +265,7 @@ static int eCos_update_threads(struct rtos *rtos) 4, (uint8_t *)&thread_status); if (retval != ERROR_OK) { - LOG_OUTPUT("Error reading thread state from eCos target\r\n"); + LOG_ERROR("Error reading thread state from eCos target"); return retval; } @@ -299,7 +299,7 @@ static int eCos_update_threads(struct rtos *rtos) param->pointer_width, (uint8_t *) &thread_index); if (retval != ERROR_OK) { - LOG_OUTPUT("Error reading next thread pointer in eCos thread list\r\n"); + LOG_ERROR("Error reading next thread pointer in eCos thread list"); return retval; } } while (thread_index != first_thread); @@ -339,7 +339,7 @@ static int eCos_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, char * 2, (uint8_t *)&id); if (retval != ERROR_OK) { - LOG_OUTPUT("Error reading unique id from eCos thread\r\n"); + LOG_ERROR("Error reading unique id from eCos thread"); return retval; } @@ -361,7 +361,7 @@ static int eCos_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, char * param->pointer_width, (uint8_t *)&stack_ptr); if (retval != ERROR_OK) { - LOG_OUTPUT("Error reading stack frame from eCos thread\r\n"); + LOG_ERROR("Error reading stack frame from eCos thread"); return retval; } @@ -404,7 +404,7 @@ static int eCos_create(struct target *target) i++; } if (i >= ECOS_NUM_PARAMS) { - LOG_OUTPUT("Could not find target in eCos compatibility list\r\n"); + LOG_ERROR("Could not find target in eCos compatibility list"); return -1; } |