From df01ebc219a64013044a98301aac1dc194aecb63 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Wed, 11 Oct 2017 17:25:07 +0200 Subject: [PATCH] Minor logging fixes --- os/net/ipv6/uip6.c | 4 ++-- os/net/mac/framer/framer-802154.c | 4 ++-- os/sys/log-conf.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/os/net/ipv6/uip6.c b/os/net/ipv6/uip6.c index b39f72ffe..b0cab3ebd 100644 --- a/os/net/ipv6/uip6.c +++ b/os/net/ipv6/uip6.c @@ -1414,14 +1414,14 @@ uip_process(uint8_t flag) icmp6_input: /* This is IPv6 ICMPv6 processing code. */ - LOG_INFO("icmp6: input length %d type: %d \n", uip_len, UIP_ICMP_BUF->type); + LOG_INFO("icmpv6 input length %d type: %d \n", uip_len, UIP_ICMP_BUF->type); #if UIP_CONF_IPV6_CHECKS /* Compute and check the ICMP header checksum */ if(uip_icmp6chksum() != 0xffff) { UIP_STAT(++uip_stat.icmp.drop); UIP_STAT(++uip_stat.icmp.chkerr); - LOG_ERR("icmpv6: bad checksum\n"); + LOG_ERR("icmpv6 bad checksum\n"); goto drop; } #endif /*UIP_CONF_IPV6_CHECKS*/ diff --git a/os/net/mac/framer/framer-802154.c b/os/net/mac/framer/framer-802154.c index bcc1bf153..7122c5ccd 100644 --- a/os/net/mac/framer/framer-802154.c +++ b/os/net/mac/framer/framer-802154.c @@ -118,7 +118,7 @@ create_frame(int do_create) return hdr_len; } else { - LOG_ERR("15.4-OUT: too large header: %u\n", hdr_len); + LOG_ERR("Out: too large header: %u\n", hdr_len); return FRAMER_FAILED; } } @@ -278,7 +278,7 @@ parse(void) } #endif /* LLSEC802154_USES_AUX_HEADER */ - LOG_INFO("15.4-IN: %2X ", frame.fcf.frame_type); + LOG_INFO("In: %2X ", frame.fcf.frame_type); LOG_INFO_LLADDR(packetbuf_addr(PACKETBUF_ADDR_SENDER)); LOG_INFO_(" "); LOG_INFO_LLADDR(packetbuf_addr(PACKETBUF_ADDR_RECEIVER)); diff --git a/os/sys/log-conf.h b/os/sys/log-conf.h index d38659386..1c992c2fa 100644 --- a/os/sys/log-conf.h +++ b/os/sys/log-conf.h @@ -95,7 +95,7 @@ #endif /* LOG_CONF_LEVEL_6LOWPAN */ #ifndef LOG_CONF_LEVEL_NULLNET -#define LOG_CONF_LEVEL_NULLNET LOG_LEVEL_INFO +#define LOG_CONF_LEVEL_NULLNET LOG_LEVEL_NONE #endif /* LOG_CONF_LEVEL_NULLNET */ #ifndef LOG_CONF_LEVEL_MAC