From 830ac8a2da2c54f7c3ffb708248431d41d7392de Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Wed, 21 Jun 2017 17:11:20 +0200 Subject: [PATCH] Logging fixes --- core/net/ip/tcpip.c | 6 +++--- core/net/mac/csma/csma-output.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/net/ip/tcpip.c b/core/net/ip/tcpip.c index 1a1dbf628..3b1091b9d 100644 --- a/core/net/ip/tcpip.c +++ b/core/net/ip/tcpip.c @@ -673,9 +673,9 @@ tcpip_ipv6_output(void) uip_ds6_set_lladdr_from_iid(&lladdr, nexthop); if((nbr = uip_ds6_nbr_add(nexthop, &lladdr, 0, NBR_REACHABLE, NBR_TABLE_REASON_IPV6_ND_AUTOFILL, NULL)) == NULL) { - PRINTF("tcpip_ipv6_output: failed to autofill neighbor cache for host "); - PRINT6ADDR(nexthop); - PRINTF("\n"); + LOG_ERR("output: failed to autofill neighbor cache for host "); + LOG_ERR_6ADDR(nexthop); + LOG_ERR("\n"); goto exit; } } diff --git a/core/net/mac/csma/csma-output.c b/core/net/mac/csma/csma-output.c index d33b812e6..555c8e88a 100644 --- a/core/net/mac/csma/csma-output.c +++ b/core/net/mac/csma/csma-output.c @@ -57,7 +57,7 @@ /* Log configuration */ #include "sys/log.h" -#define LOG_MODULE " +#define LOG_MODULE "CSMA" #define LOG_LEVEL MAC_LOG_LEVEL /* Constants of the IEEE 802.15.4 standard */