From 30ebacd7847023faf4053fddcf9d2de77ff51abe Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 10 May 2023 13:00:41 +0200 Subject: [PATCH] sys/shell/cmd_gnrc_icmpv6_echo: fix format specifier At a cast to `unsigned` so that the format specifier `%u` matches the type. I think this won't have an impact on the generated machine code. --- sys/shell/cmds/gnrc_icmpv6_echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/cmds/gnrc_icmpv6_echo.c b/sys/shell/cmds/gnrc_icmpv6_echo.c index 444da87770..4912ff63af 100644 --- a/sys/shell/cmds/gnrc_icmpv6_echo.c +++ b/sys/shell/cmds/gnrc_icmpv6_echo.c @@ -344,7 +344,7 @@ static int _print_reply(gnrc_pktsnip_t *pkt, int corrupted, uint32_t triptime, v } /* check response for corruption */ else if (corrupted >= 0) { - printf(" corrupted at offset %u", corrupted); + printf(" corrupted at offset %u", (unsigned)corrupted); } if (rssi != GNRC_NETIF_HDR_NO_RSSI) { printf(" rssi=%"PRId16" dBm", rssi);