From b1c3ca458af577c480e2ba63da75c67a12e062bd Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Wed, 15 Apr 2015 20:09:35 -0700 Subject: [PATCH] ng_udp: improve debug output This PR corrects the faulty debug output from ng_udp.c:151 and unifies all debug messages with the prefix ``udp: cannot send packet``. --- sys/net/transport_layer/ng_udp/ng_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/transport_layer/ng_udp/ng_udp.c b/sys/net/transport_layer/ng_udp/ng_udp.c index a8e7d6c3f5..5de0cc6cce 100644 --- a/sys/net/transport_layer/ng_udp/ng_udp.c +++ b/sys/net/transport_layer/ng_udp/ng_udp.c @@ -148,7 +148,7 @@ static void _send(ng_pktsnip_t *pkt) LL_SEARCH_SCALAR(pkt, udp_snip, type, NG_NETTYPE_UDP); udp_snip = ng_pktbuf_start_write(udp_snip); if (udp_snip == NULL) { - DEBUG("udp: cannot send packet, no UDP header found\n"); + DEBUG("udp: cannot send packet: unable to allocate packet\n"); ng_pktbuf_release(pkt); return; } @@ -160,7 +160,7 @@ static void _send(ng_pktsnip_t *pkt) sendto = ng_netreg_lookup(pkt->type, NG_NETREG_DEMUX_CTX_ALL); /* throw away packet if no one is interested */ if (sendto == NULL) { - DEBUG("udp: cannot send packet because network layer not found\n"); + DEBUG("udp: cannot send packet: network layer not found\n"); ng_pktbuf_release(pkt); return; }