Skip to content

Commit

Permalink
fixup! shell_commands: adapt ping6 to original-ping-like implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 9, 2018
1 parent a4a6db3 commit 6d2bc0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/shell/commands/sc_gnrc_icmpv6_echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6d2bc0c

Please sign in to comment.