aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-01-03 16:43:27 +0000
committerFreddie Chopin <freddie.chopin@gmail.com>2013-01-27 14:29:34 +0000
commit08fc7417333dc8ba4dd4ac15776ed2e9ede504bd (patch)
tree264fc96cf29cc2cef57b9d775113944e5d313bdd /src/rtos/rtos.c
parentb5c616b90ec3e2e75d48dc6765b06a86ca44e05f (diff)
downloadriscv-openocd-08fc7417333dc8ba4dd4ac15776ed2e9ede504bd.zip
riscv-openocd-08fc7417333dc8ba4dd4ac15776ed2e9ede504bd.tar.gz
riscv-openocd-08fc7417333dc8ba4dd4ac15776ed2e9ede504bd.tar.bz2
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/rtos.c')
-rw-r--r--src/rtos/rtos.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 61fc793..ddeb74f 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -229,7 +229,7 @@ int rtos_qsymbol(struct connection *connection, char *packet, int packet_size)
}
if (os->type->detect_rtos(target)) {
- LOG_OUTPUT("Auto-detected RTOS: %s\r\n", os->type->name);
+ LOG_INFO("Auto-detected RTOS: %s", os->type->name);
rtos_detected = 1;
goto done;
} else {
@@ -239,7 +239,7 @@ int rtos_qsymbol(struct connection *connection, char *packet, int packet_size)
}
if (8 + (strlen(next_sym) * 2) + 1 > sizeof(reply)) {
- LOG_OUTPUT("ERROR: RTOS symbol '%s' name is too long for GDB!", next_sym);
+ LOG_ERROR("ERROR: RTOS symbol '%s' name is too long for GDB!", next_sym);
goto done;
}
@@ -429,7 +429,7 @@ int rtos_generic_stack_read(struct target *target,
int retval;
if (stack_ptr == 0) {
- LOG_OUTPUT("Error: null stack pointer in thread\r\n");
+ LOG_ERROR("Error: null stack pointer in thread");
return -5;
}
/* Read the stack */
@@ -440,7 +440,7 @@ int rtos_generic_stack_read(struct target *target,
address -= stacking->stack_registers_size;
retval = target_read_buffer(target, address, stacking->stack_registers_size, stack_data);
if (retval != ERROR_OK) {
- LOG_OUTPUT("Error reading stack frame from FreeRTOS thread\r\n");
+ LOG_ERROR("Error reading stack frame from FreeRTOS thread");
return retval;
}
#if 0