1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6921 from smlng/net/icmpv6/correct_debug_output

net, icmpv6: correct debug output
This commit is contained in:
Martine Lenders 2017-04-18 17:15:33 +02:00 committed by GitHub
commit 85c5ba28c8

View File

@ -140,16 +140,14 @@ void gnrc_icmpv6_demux(kernel_pid_t iface, gnrc_pktsnip_t *pkt)
}
}
gnrc_pktsnip_t *gnrc_icmpv6_build(gnrc_pktsnip_t *next, uint8_t type, uint8_t code,
size_t size)
gnrc_pktsnip_t *gnrc_icmpv6_build(gnrc_pktsnip_t *next, uint8_t type,
uint8_t code, size_t size)
{
gnrc_pktsnip_t *pkt;
icmpv6_hdr_t *icmpv6;
pkt = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_ICMPV6);
if (pkt == NULL) {
DEBUG("icmpv6_echo: no space left in packet buffer\n");
if ((pkt = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_ICMPV6)) == NULL) {
DEBUG("icmpv6: no space left in packet buffer\n");
return NULL;
}