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

Merge pull request #5285 from kYc0o/gnrc_netdev2_ieee802154_debug

gnrc_netdev2_ieee802154.c: increase buffer
This commit is contained in:
Cenk Gündoğan 2016-04-10 17:17:42 +02:00
commit 8c4003f6e7
3 changed files with 3 additions and 2 deletions

View File

@ -36,6 +36,7 @@ extern "C" {
* in bytes.
*/
#define GNRC_NETIF_HDR_L2ADDR_MAX_LEN (8)
#define GNRC_NETIF_HDR_L2ADDR_PRINT_LEN (GNRC_NETIF_HDR_L2ADDR_MAX_LEN * 3)
/**
* @{

View File

@ -89,7 +89,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netdev2_t *gnrc_netdev2)
gnrc_pktsnip_t *ieee802154_hdr, *netif_hdr;
gnrc_netif_hdr_t *hdr;
#if ENABLE_DEBUG
char src_str[GNRC_NETIF_HDR_L2ADDR_MAX_LEN];
char src_str[GNRC_NETIF_HDR_L2ADDR_PRINT_LEN];
#endif
size_t mhr_len = ieee802154_get_frame_hdr_len(pkt->data);

View File

@ -20,7 +20,7 @@
void gnrc_netif_hdr_print(gnrc_netif_hdr_t *hdr)
{
char addr_str[GNRC_NETIF_HDR_L2ADDR_MAX_LEN * 3];
char addr_str[GNRC_NETIF_HDR_L2ADDR_PRINT_LEN];
printf("if_pid: %" PRIkernel_pid " ", hdr->if_pid);
printf("rssi: %" PRIu8 " ", hdr->rssi);