From: Tomas Vanek Date: Mon, 19 May 2025 15:10:00 +0000 (+0200) Subject: rtos/hwthread: use printf format specifier X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c545b9c4ab32c5566091dfe05e7f1765c39ed069;p=users%2Fborneoa%2Fopenocd-next.git rtos/hwthread: use printf format specifier instead of typecast. Change-Id: I62e3a0faebd915615f6b72a456667c49970a4091 Signed-off-by: Tomas Vanek Reviewed-on: https://review.openocd.org/c/openocd/+/8926 Tested-by: jenkins Reviewed-by: Antonio Borneo --- diff --git a/src/rtos/hwthread.c b/src/rtos/hwthread.c index 5c6c45f78..b2a45ade9 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, "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; }