forked from auracaster/openocd
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 <erhan.kurubas@espressif.com> Change-Id: Ie351a63088c63f33467ad3c854167870bc1b4843 Reviewed-on: https://review.openocd.org/c/openocd/+/7286 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
aa6a071086
commit
461af9b3ab
@@ -117,7 +117,7 @@ COMMAND_HANDLER(handle_rtt_channels_command)
|
|||||||
|
|
||||||
ctrl = rtt_get_control();
|
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);
|
ctrl->num_down_channels);
|
||||||
|
|
||||||
command_print(CMD, "Up-channels:");
|
command_print(CMD, "Up-channels:");
|
||||||
@@ -134,7 +134,7 @@ COMMAND_HANDLER(handle_rtt_channels_command)
|
|||||||
if (!info.size)
|
if (!info.size)
|
||||||
continue;
|
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);
|
info.flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ COMMAND_HANDLER(handle_rtt_channels_command)
|
|||||||
if (!info.size)
|
if (!info.size)
|
||||||
continue;
|
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);
|
info.flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user