Minor logging fixes
This commit is contained in:
parent
9d77bad2c2
commit
df01ebc219
@ -1414,14 +1414,14 @@ uip_process(uint8_t flag)
|
|||||||
|
|
||||||
icmp6_input:
|
icmp6_input:
|
||||||
/* This is IPv6 ICMPv6 processing code. */
|
/* 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
|
#if UIP_CONF_IPV6_CHECKS
|
||||||
/* Compute and check the ICMP header checksum */
|
/* Compute and check the ICMP header checksum */
|
||||||
if(uip_icmp6chksum() != 0xffff) {
|
if(uip_icmp6chksum() != 0xffff) {
|
||||||
UIP_STAT(++uip_stat.icmp.drop);
|
UIP_STAT(++uip_stat.icmp.drop);
|
||||||
UIP_STAT(++uip_stat.icmp.chkerr);
|
UIP_STAT(++uip_stat.icmp.chkerr);
|
||||||
LOG_ERR("icmpv6: bad checksum\n");
|
LOG_ERR("icmpv6 bad checksum\n");
|
||||||
goto drop;
|
goto drop;
|
||||||
}
|
}
|
||||||
#endif /*UIP_CONF_IPV6_CHECKS*/
|
#endif /*UIP_CONF_IPV6_CHECKS*/
|
||||||
|
@ -118,7 +118,7 @@ create_frame(int do_create)
|
|||||||
|
|
||||||
return hdr_len;
|
return hdr_len;
|
||||||
} else {
|
} 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;
|
return FRAMER_FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -278,7 +278,7 @@ parse(void)
|
|||||||
}
|
}
|
||||||
#endif /* LLSEC802154_USES_AUX_HEADER */
|
#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_LLADDR(packetbuf_addr(PACKETBUF_ADDR_SENDER));
|
||||||
LOG_INFO_(" ");
|
LOG_INFO_(" ");
|
||||||
LOG_INFO_LLADDR(packetbuf_addr(PACKETBUF_ADDR_RECEIVER));
|
LOG_INFO_LLADDR(packetbuf_addr(PACKETBUF_ADDR_RECEIVER));
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
#endif /* LOG_CONF_LEVEL_6LOWPAN */
|
#endif /* LOG_CONF_LEVEL_6LOWPAN */
|
||||||
|
|
||||||
#ifndef LOG_CONF_LEVEL_NULLNET
|
#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 */
|
#endif /* LOG_CONF_LEVEL_NULLNET */
|
||||||
|
|
||||||
#ifndef LOG_CONF_LEVEL_MAC
|
#ifndef LOG_CONF_LEVEL_MAC
|
||||||
|
Loading…
Reference in New Issue
Block a user