From: Tim Newsome Date: Sun, 18 May 2025 09:11:07 +0000 (+0200) Subject: rtos/hwthread: Nicer debug message in hwthread_update_threads() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=330b06b440aafff1150e00f396ac8d44a8cd82a9;p=users%2Fborneoa%2Fopenocd-next.git rtos/hwthread: Nicer debug message in hwthread_update_threads() Imported from https://github.com/riscv-collab/riscv-openocd/pull/763 Change-Id: Ia5931a772476a2ae186ed87cd70d7e4be2f196fb Signed-off-by: Tim Newsome Reviewed-on: https://review.openocd.org/c/openocd/+/8917 Reviewed-by: Antonio Borneo Tested-by: jenkins --- diff --git a/src/rtos/hwthread.c b/src/rtos/hwthread.c index cc43a07b4..5c6c45f78 100644 --- a/src/rtos/hwthread.c +++ b/src/rtos/hwthread.c @@ -206,8 +206,8 @@ static int hwthread_update_threads(struct rtos *rtos) else rtos->current_thread = threadid_from_target(target); - LOG_TARGET_DEBUG(target, "%s current_thread=%i", __func__, - (int)rtos->current_thread); + LOG_TARGET_DEBUG(target, "current_thread=%i, threads_found=%d", + (int)rtos->current_thread, threads_found); return 0; }