From 461af9b3abd1aeb94f047f990074b7e5d954fbea Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Mon, 24 Oct 2022 18:08:35 +0200 Subject: [PATCH] rtt/tcl: fix format specifiers Format specifier in the LOG_XXX calls replaced as below; type old new uint32_t %u %PRIu32 Signed-off-by: Erhan Kurubas Change-Id: Ie351a63088c63f33467ad3c854167870bc1b4843 Reviewed-on: https://review.openocd.org/c/openocd/+/7286 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/rtt/tcl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rtt/tcl.c b/src/rtt/tcl.c index bae71b6ce..beb12d90d 100644 --- a/src/rtt/tcl.c +++ b/src/rtt/tcl.c @@ -117,7 +117,7 @@ COMMAND_HANDLER(handle_rtt_channels_command) ctrl = rtt_get_control(); - command_print(CMD, "Channels: up=%u, down=%u", ctrl->num_up_channels, + command_print(CMD, "Channels: up=%" PRIu32 ", down=%" PRIu32, ctrl->num_up_channels, ctrl->num_down_channels); command_print(CMD, "Up-channels:"); @@ -134,7 +134,7 @@ COMMAND_HANDLER(handle_rtt_channels_command) if (!info.size) continue; - command_print(CMD, "%u: %s %u %u", i, info.name, info.size, + command_print(CMD, "%u: %s %" PRIu32 " %" PRIu32, i, info.name, info.size, info.flags); } @@ -149,7 +149,7 @@ COMMAND_HANDLER(handle_rtt_channels_command) if (!info.size) continue; - command_print(CMD, "%u: %s %u %u", i, info.name, info.size, + command_print(CMD, "%u: %s %" PRIu32 " %" PRIu32, i, info.name, info.size, info.flags); }