sys/*: remove unneeded ENABLE_DEBUG

This commit is contained in:
Bas Stottelaar 2020-10-23 00:47:37 +02:00
parent 6fc3ac8371
commit a0979b10e7
4 changed files with 0 additions and 18 deletions

View File

@ -163,11 +163,9 @@ uint8_t _handle_aro(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
(void)nce;
#endif /* CONFIG_GNRC_IPV6_NIB_6LR */
}
#if ENABLE_DEBUG
else if (aro->len != SIXLOWPAN_ND_OPT_AR_LEN) {
DEBUG("nib: ARO of unexpected length %u, ignoring ARO\n", aro->len);
}
#endif /* ENABLE_DEBUG */
return _ADDR_REG_STATUS_IGNORE;
}

View File

@ -133,11 +133,9 @@ void _handle_sl2ao(gnrc_netif_t *netif, const ipv6_hdr_t *ipv6,
}
#endif /* CONFIG_GNRC_IPV6_NIB_MULTIHOP_DAD && CONFIG_GNRC_IPV6_NIB_6LR */
}
#if ENABLE_DEBUG
else {
DEBUG("nib: Neighbor cache full\n");
}
#endif /* ENABLE_DEBUG */
}
/* not else to include NCE created in nce == NULL branch */
if ((nce != NULL) && (nce->mode & _NC)) {
@ -322,7 +320,6 @@ void _probe_nbr(_nib_onl_entry_t *nbr, bool reset)
nbr->ns_sent++;
}
}
#if ENABLE_DEBUG
else {
DEBUG("multicast to %s's solicited nodes (skipping since there is already "
"a multicast NS within %ums)\n",
@ -330,7 +327,6 @@ void _probe_nbr(_nib_onl_entry_t *nbr, bool reset)
sizeof(addr_str)),
(unsigned)netif->ipv6.retrans_time);
}
#endif /* ENABLE_DEBUG */
gnrc_netif_release(netif);
}
break;

View File

@ -111,11 +111,9 @@ _nib_onl_entry_t *_nib_onl_alloc(const ipv6_addr_t *addr, unsigned iface)
if (node != NULL) {
_override_node(addr, iface, node);
}
#if ENABLE_DEBUG
else {
DEBUG(" NIB full\n");
}
#endif /* ENABLE_DEBUG */
return node;
}

View File

@ -50,11 +50,9 @@ gnrc_pktsnip_t *gnrc_ndp_nbr_sol_build(const ipv6_addr_t *tgt,
nbr_sol->tgt.u64[0].u64 = tgt->u64[0].u64;
nbr_sol->tgt.u64[1].u64 = tgt->u64[1].u64;
}
#if ENABLE_DEBUG
else {
DEBUG("ndp: NS not created due to no space in packet buffer\n");
}
#endif
return pkt;
}
@ -73,11 +71,9 @@ gnrc_pktsnip_t *gnrc_ndp_nbr_adv_build(const ipv6_addr_t *tgt, uint8_t flags,
nbr_adv->tgt.u64[0].u64 = tgt->u64[0].u64;
nbr_adv->tgt.u64[1].u64 = tgt->u64[1].u64;
}
#if ENABLE_DEBUG
else {
DEBUG("ndp: NA not created due to no space in packet buffer\n");
}
#endif
return pkt;
}
@ -91,11 +87,9 @@ gnrc_pktsnip_t *gnrc_ndp_rtr_sol_build(gnrc_pktsnip_t *options)
ndp_rtr_sol_t *rtr_sol = pkt->data;
rtr_sol->resv.u32 = 0;
}
#if ENABLE_DEBUG
else {
DEBUG("ndp: RS not created due to no space in packet buffer\n");
}
#endif
return pkt;
}
@ -116,11 +110,9 @@ gnrc_pktsnip_t *gnrc_ndp_rtr_adv_build(uint8_t cur_hl, uint8_t flags,
rtr_adv->reach_time = byteorder_htonl(reach_time);
rtr_adv->retrans_timer = byteorder_htonl(retrans_timer);
}
#if ENABLE_DEBUG
else {
DEBUG("ndp: RA not created due to no space in packet buffer\n");
}
#endif
return pkt;
}
@ -141,11 +133,9 @@ gnrc_pktsnip_t *gnrc_ndp_opt_build(uint8_t type, size_t size,
opt->type = type;
opt->len = (uint8_t)(pkt->size / 8);
}
#if ENABLE_DEBUG
else {
DEBUG("ndp: option not created due to no space in packet buffer\n");
}
#endif
return pkt;
}