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

pktdump: fix formatting of snip dumps

This commit is contained in:
Sebastian Sontberg 2015-04-19 16:46:32 +02:00
parent a8c55ff844
commit b228e1a936

View File

@ -100,7 +100,7 @@ static void _dump_snip(ng_pktsnip_t *pkt)
#endif
#ifdef MODULE_NG_SIXLOWPAN
case NG_NETTYPE_SIXLOWPAN:
printf("NETTYPE_SIXLOWPAN (%i)", pkt->type);
printf("NETTYPE_SIXLOWPAN (%i)\n", pkt->type);
break;
#endif
#ifdef MODULE_NG_IPV6
@ -111,27 +111,27 @@ static void _dump_snip(ng_pktsnip_t *pkt)
#endif
#ifdef MODULE_NG_ICMPV6
case NG_NETTYPE_ICMPV6:
printf("NETTYPE_ICMPV6 (%i)", pkt->type);
printf("NETTYPE_ICMPV6 (%i)\n", pkt->type);
break;
#endif
#ifdef MODULE_NG_TCP
case NG_NETTYPE_TCP:
printf("NETTYPE_TCP (%i)", pkt->type);
printf("NETTYPE_TCP (%i)\n", pkt->type);
break;
#endif
#ifdef MODULE_NG_UDP
case NG_NETTYPE_UDP:
printf("NETTYPE_UDP (%i)", pkt->type);
printf("NETTYPE_UDP (%i)\n", pkt->type);
break;
#endif
#ifdef TEST_SUITES
case NG_NETTYPE_TEST:
printf("NETTYPE_TEST (%i)", pkt->type);
printf("NETTYPE_TEST (%i)\n", pkt->type);
od_hex_dump(pkt->data, pkt->size, OD_WIDTH_DEFAULT);
break;
#endif
default:
printf("NETTYPE_UNKNOWN (%i)", pkt->type);
printf("NETTYPE_UNKNOWN (%i)\n", pkt->type);
od_hex_dump(pkt->data, pkt->size, OD_WIDTH_DEFAULT);
break;
}