]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
rtos/hwthread: use printf format specifier
authorTomas Vanek <vanekt@fbl.cz>
Mon, 19 May 2025 15:10:00 +0000 (17:10 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 7 Jun 2025 08:40:46 +0000 (08:40 +0000)
instead of typecast.

Change-Id: I62e3a0faebd915615f6b72a456667c49970a4091
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/8926
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/rtos/hwthread.c

index 5c6c45f78f1e0c113cb261a9528970923c6ce524..b2a45ade9f35d31b48988f5b344afb5ec02f6130 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, "current_thread=%i, threads_found=%d",
-                                        (int)rtos->current_thread, threads_found);
+       LOG_TARGET_DEBUG(target, "current_thread=%" PRId64 ", threads_found=%d",
+                                        rtos->current_thread, threads_found);
        return 0;
 }