mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #8209 from bergzand/pr/netifeth_oddebug
gnrc_netif: Fix compile errors when debug is enabled
This commit is contained in:
commit
7745060ad9
@ -26,6 +26,10 @@
|
|||||||
#define ENABLE_DEBUG (0)
|
#define ENABLE_DEBUG (0)
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
#if defined(MODULE_OD) && ENABLE_DEBUG
|
||||||
|
#include "od.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt);
|
static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt);
|
||||||
static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif);
|
static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif);
|
||||||
|
|
||||||
|
@ -24,6 +24,10 @@
|
|||||||
#define ENABLE_DEBUG (0)
|
#define ENABLE_DEBUG (0)
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
#if defined(MODULE_OD) && ENABLE_DEBUG
|
||||||
|
#include "od.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE_NETDEV_IEEE802154
|
#ifdef MODULE_NETDEV_IEEE802154
|
||||||
static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt);
|
static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt);
|
||||||
static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif);
|
static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif);
|
||||||
@ -137,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);
|
||||||
|
Loading…
Reference in New Issue
Block a user