aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-02-15 09:52:36 -0800
committerGitHub <noreply@github.com>2023-02-15 09:52:36 -0800
commit9cafc75678b96d77797f1ca635192eee4522389a (patch)
tree0e675ecf1fea91e12dac5dd4740da4e512cb1c61
parenta57fc5e78ce5aa0d0e11429866eef6555c78e52e (diff)
parent9cc674937007a0d844d255a12908d5bed0ae07df (diff)
downloadriscv-openocd-9cafc75678b96d77797f1ca635192eee4522389a.zip
riscv-openocd-9cafc75678b96d77797f1ca635192eee4522389a.tar.gz
riscv-openocd-9cafc75678b96d77797f1ca635192eee4522389a.tar.bz2
Merge pull request #796 from Du-Chao/freertos_log
Improve a debug log in freertos_update_threads()
-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;