Fix IPv4-dependend debug output

This commit is contained in:
Gregory Nutt 2015-02-09 13:18:31 -06:00
parent 09b356c497
commit 987715e8a3

View File

@ -2477,8 +2477,12 @@ static int tiva_ifup(struct net_driver_s *dev)
ndbg("Bringing up: %d.%d.%d.%d\n",
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
#else
ndbg("Bringing the network up\n");
#endif
#ifdef CONFIG_NET_IPv4
ndbg("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
dev->d_ipv6addr[0], dev->d_ipv6addr[1], dev->d_ipv6addr[2],
dev->d_ipv6addr[3], dev->d_ipv6addr[4], dev->d_ipv6addr[5],
dev->d_ipv6addr[6], dev->d_ipv6addr[7]);
#endif
/* Configure the Ethernet interface for DMA operation. */