gnrc_netif: Fix debug printing in ieee802154

This commit is contained in:
Koen Zandberg 2017-12-05 14:48:18 +01:00
parent ef8222e4bd
commit 039bdf2aa6
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -141,9 +141,9 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
pkt->type = state->proto; pkt->type = state->proto;
#if ENABLE_DEBUG #if ENABLE_DEBUG
DEBUG("_recv_ieee802154: received packet from %s of length %u\n", DEBUG("_recv_ieee802154: received packet from %s of length %u\n",
gnrc_netif_addr_to_str(src_str, sizeof(src_str), gnrc_netif_addr_to_str(gnrc_netif_hdr_get_src_addr(hdr),
gnrc_netif_hdr_get_src_addr(hdr), hdr->src_l2addr_len,
hdr->src_l2addr_len), src_str),
nread); nread);
#if defined(MODULE_OD) #if defined(MODULE_OD)
od_hex_dump(pkt->data, nread, OD_WIDTH_DEFAULT); od_hex_dump(pkt->data, nread, OD_WIDTH_DEFAULT);