pktdump: fix printf formatting

%zu would be the correct format string for `size_t`, but with nano-specs
this is not outputted.
dev/timer
Martine Lenders 8 years ago committed by Martine Lenders
parent 067a3498c5
commit cba4e5b8f1

@ -100,7 +100,8 @@ static void _dump(ng_pktsnip_t *pkt)
ng_pktsnip_t *snip = pkt;
while (snip != NULL) {
printf("~~ SNIP %2i - size: %3i byte, type: ", snips, snip->size);
printf("~~ SNIP %2i - size: %3u byte, type: ", snips,
(unsigned int)snip->size);
_dump_snip(snip);
++snips;
size += snip->size;

Loading…
Cancel
Save