forked from auracaster/openocd
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>
This commit is contained in:
committed by
Freddie Chopin
parent
b5c616b90e
commit
08fc741733
@@ -134,12 +134,12 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
param = (const struct ThreadX_params *) rtos->rtos_specific_params;
|
||||
|
||||
if (rtos->symbols == NULL) {
|
||||
LOG_OUTPUT("No symbols for ThreadX\r\n");
|
||||
LOG_ERROR("No symbols for ThreadX");
|
||||
return -4;
|
||||
}
|
||||
|
||||
if (rtos->symbols[ThreadX_VAL_tx_thread_created_count].address == 0) {
|
||||
LOG_OUTPUT("Don't have the number of threads in ThreadX \r\n");
|
||||
LOG_ERROR("Don't have the number of threads in ThreadX");
|
||||
return -2;
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
(uint8_t *)&thread_list_size);
|
||||
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Could not read ThreadX thread count from target\r\n");
|
||||
LOG_ERROR("Could not read ThreadX thread count from target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
(uint8_t *)&rtos->current_thread);
|
||||
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Could not read ThreadX current thread from target\r\n");
|
||||
LOG_ERROR("Could not read ThreadX current thread from target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
param->pointer_width,
|
||||
(uint8_t *)&thread_ptr);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Could not read ThreadX thread location from target\r\n");
|
||||
LOG_ERROR("Could not read ThreadX thread location from target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
param->pointer_width,
|
||||
(uint8_t *)&name_ptr);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Could not read ThreadX thread name pointer from target\r\n");
|
||||
LOG_ERROR("Could not read ThreadX thread name pointer from target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
THREADX_THREAD_NAME_STR_SIZE,
|
||||
(uint8_t *)&tmp_str);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading thread name from ThreadX target\r\n");
|
||||
LOG_ERROR("Error reading thread name from ThreadX target");
|
||||
return retval;
|
||||
}
|
||||
tmp_str[THREADX_THREAD_NAME_STR_SIZE-1] = '\x00';
|
||||
@@ -271,7 +271,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
4,
|
||||
(uint8_t *)&thread_status);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading thread state from ThreadX target\r\n");
|
||||
LOG_ERROR("Error reading thread state from ThreadX target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ static int ThreadX_update_threads(struct rtos *rtos)
|
||||
param->pointer_width,
|
||||
(uint8_t *) &thread_ptr);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading next thread pointer in ThreadX thread list\r\n");
|
||||
LOG_ERROR("Error reading next thread pointer in ThreadX thread list");
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
@@ -339,7 +339,7 @@ static int ThreadX_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, cha
|
||||
param->pointer_width,
|
||||
(uint8_t *)&stack_ptr);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading stack frame from ThreadX thread\r\n");
|
||||
LOG_ERROR("Error reading stack frame from ThreadX thread");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ static int ThreadX_get_thread_detail(struct rtos *rtos,
|
||||
param = (const struct ThreadX_params *) rtos->rtos_specific_params;
|
||||
|
||||
if (rtos->symbols == NULL) {
|
||||
LOG_OUTPUT("No symbols for ThreadX\r\n");
|
||||
LOG_ERROR("No symbols for ThreadX");
|
||||
return -3;
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ static int ThreadX_get_thread_detail(struct rtos *rtos,
|
||||
param->pointer_width,
|
||||
(uint8_t *)&name_ptr);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Could not read ThreadX thread name pointer from target\r\n");
|
||||
LOG_ERROR("Could not read ThreadX thread name pointer from target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@ static int ThreadX_get_thread_detail(struct rtos *rtos,
|
||||
THREADX_THREAD_NAME_STR_SIZE,
|
||||
(uint8_t *)&tmp_str);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading thread name from ThreadX target\r\n");
|
||||
LOG_ERROR("Error reading thread name from ThreadX target");
|
||||
return retval;
|
||||
}
|
||||
tmp_str[THREADX_THREAD_NAME_STR_SIZE-1] = '\x00';
|
||||
@@ -440,7 +440,7 @@ static int ThreadX_get_thread_detail(struct rtos *rtos,
|
||||
4,
|
||||
(uint8_t *)&thread_status);
|
||||
if (retval != ERROR_OK) {
|
||||
LOG_OUTPUT("Error reading thread state from ThreadX target\r\n");
|
||||
LOG_ERROR("Error reading thread state from ThreadX target");
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ static int ThreadX_create(struct target *target)
|
||||
i++;
|
||||
}
|
||||
if (i >= THREADX_NUM_PARAMS) {
|
||||
LOG_OUTPUT("Could not find target in ThreadX compatibility list\r\n");
|
||||
LOG_ERROR("Could not find target in ThreadX compatibility list");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user