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 <tim@sifive.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8917
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Tim Newsome
2025-05-18 11:11:07 +02:00
committed by Antonio Borneo
parent 6975baa88b
commit 330b06b440

View File

@@ -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;
}