aboutsummaryrefslogtreecommitdiff
path: root/src/rtos
diff options
context:
space:
mode:
authorduchao <duchao@eswincomputing.com>2023-02-08 03:01:57 +0000
committerduchao <duchao@eswincomputing.com>2023-02-08 03:01:57 +0000
commit9cc674937007a0d844d255a12908d5bed0ae07df (patch)
tree1882c4ebe733e9828dc19ae9fea05e26d8083e77 /src/rtos
parent9c3a4b458cbe88b4deff81452150e6c163e2e6e5 (diff)
downloadriscv-openocd-9cc674937007a0d844d255a12908d5bed0ae07df.zip
riscv-openocd-9cc674937007a0d844d255a12908d5bed0ae07df.tar.gz
riscv-openocd-9cc674937007a0d844d255a12908d5bed0ae07df.tar.bz2
Improve a debug log in freertos_update_threads()
To make the log more accurate and comprehensible. In case the offset is non-zero. Signed-off-by: Chao Du <duchao@eswincomputing.com>
Diffstat (limited to 'src/rtos')
-rw-r--r--src/rtos/FreeRTOS.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/FreeRTOS.c b/src/rtos/FreeRTOS.c
index ee6bdb3..96b535d 100644
--- a/src/rtos/FreeRTOS.c
+++ b/src/rtos/FreeRTOS.c
@@ -590,7 +590,7 @@ static int freertos_update_threads(struct rtos *rtos)
return retval;
}
LOG_DEBUG("FreeRTOS: Read thread count for list %u at 0x%" PRIx64 ", value %" PRIu64,
- i, list_of_lists[i], list_thread_count);
+ i, list_of_lists[i] + freertos->list_uxNumberOfItems_offset, list_thread_count);
if (list_thread_count == 0)
continue;