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:
commit
85c5ba28c8
@ -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,
|
gnrc_pktsnip_t *gnrc_icmpv6_build(gnrc_pktsnip_t *next, uint8_t type,
|
||||||
size_t size)
|
uint8_t code, size_t size)
|
||||||
{
|
{
|
||||||
gnrc_pktsnip_t *pkt;
|
gnrc_pktsnip_t *pkt;
|
||||||
icmpv6_hdr_t *icmpv6;
|
icmpv6_hdr_t *icmpv6;
|
||||||
|
|
||||||
pkt = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_ICMPV6);
|
if ((pkt = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_ICMPV6)) == NULL) {
|
||||||
|
DEBUG("icmpv6: no space left in packet buffer\n");
|
||||||
if (pkt == NULL) {
|
|
||||||
DEBUG("icmpv6_echo: no space left in packet buffer\n");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user