From 6d2bc0c60e2989a7dba4a718ff7c9cd121fdc063 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Mon, 9 Jul 2018 20:44:17 +0200 Subject: [PATCH] fixup! shell_commands: adapt ping6 to original-ping-like implementation --- sys/shell/commands/sc_gnrc_icmpv6_echo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_gnrc_icmpv6_echo.c b/sys/shell/commands/sc_gnrc_icmpv6_echo.c index 4c846163962e..f5d793e4fe4a 100644 --- a/sys/shell/commands/sc_gnrc_icmpv6_echo.c +++ b/sys/shell/commands/sc_gnrc_icmpv6_echo.c @@ -364,7 +364,8 @@ static void _print_reply(_ping_data_t *data, gnrc_pktsnip_t *icmpv6, printf("%u bytes from %s: icmp_seq=%u ttl=%u", (unsigned)icmpv6->size, from_str, recv_seq, hoplimit); if (data->datalen >= sizeof(uint32_t)) { - printf(" time=%u.%03u ms", triptime / 1000, triptime % 1000); + printf(" time=%lu.%03lu ms", (long unsigned)triptime / 1000, + (long unsigned)triptime % 1000); } puts(dupmsg); fflush(stdout);