Added net-debug.[ch] to provide debug functions even in the non-IP case

This commit is contained in:
Simon Duquennoy 2016-04-20 11:45:54 +02:00
parent 5b5f07ba52
commit abf08a7167
15 changed files with 166 additions and 73 deletions

View file

@ -68,15 +68,3 @@ uip_debug_ipaddr_print(const uip_ipaddr_t *addr)
#endif /* NETSTACK_CONF_WITH_IPV6 */
}
/*---------------------------------------------------------------------------*/
void
uip_debug_lladdr_print(const uip_lladdr_t *addr)
{
unsigned int i;
for(i = 0; i < sizeof(uip_lladdr_t); i++) {
if(i > 0) {
putstring(":");
}
puthex(addr->addr[i]);
}
}
/*---------------------------------------------------------------------------*/