]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
rtos/hwthread: Nicer debug message in hwthread_update_threads()
authorTim Newsome <tim@sifive.com>
Sun, 18 May 2025 09:11:07 +0000 (11:11 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 7 Jun 2025 08:40:17 +0000 (08:40 +0000)
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
src/rtos/hwthread.c

index cc43a07b426f91885c4703d8d6fcbb3a8dff6b19..5c6c45f78f1e0c113cb261a9528970923c6ce524 100644 (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;
 }