Logging fixes

This commit is contained in:
Simon Duquennoy 2017-06-21 17:11:20 +02:00
parent 9231d9f82d
commit 830ac8a2da
2 changed files with 4 additions and 4 deletions

View File

@ -673,9 +673,9 @@ tcpip_ipv6_output(void)
uip_ds6_set_lladdr_from_iid(&lladdr, nexthop); uip_ds6_set_lladdr_from_iid(&lladdr, nexthop);
if((nbr = uip_ds6_nbr_add(nexthop, &lladdr, if((nbr = uip_ds6_nbr_add(nexthop, &lladdr,
0, NBR_REACHABLE, NBR_TABLE_REASON_IPV6_ND_AUTOFILL, NULL)) == NULL) { 0, NBR_REACHABLE, NBR_TABLE_REASON_IPV6_ND_AUTOFILL, NULL)) == NULL) {
PRINTF("tcpip_ipv6_output: failed to autofill neighbor cache for host "); LOG_ERR("output: failed to autofill neighbor cache for host ");
PRINT6ADDR(nexthop); LOG_ERR_6ADDR(nexthop);
PRINTF("\n"); LOG_ERR("\n");
goto exit; goto exit;
} }
} }

View File

@ -57,7 +57,7 @@
/* Log configuration */ /* Log configuration */
#include "sys/log.h" #include "sys/log.h"
#define LOG_MODULE " #define LOG_MODULE "CSMA"
#define LOG_LEVEL MAC_LOG_LEVEL #define LOG_LEVEL MAC_LOG_LEVEL
/* Constants of the IEEE 802.15.4 standard */ /* Constants of the IEEE 802.15.4 standard */