1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Marian Buschsieweke 2023-05-10 13:00:41 +02:00
parent cf7ef55b8d
commit 30ebacd784
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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);