mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc: use correct l2addr print len
This commit is contained in:
parent
d171c96ede
commit
6df58ac767
@ -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)
|
||||
|
||||
/**
|
||||
* @{
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user