Tiva Ethernet: Don't try to print IPv4 address if IPv4 is not enabled

This commit is contained in:
Gregory Nutt 2015-01-18 11:38:40 -06:00
parent 3ba0184051
commit a386319013

View File

@ -2425,9 +2425,13 @@ static int tiva_ifup(struct net_driver_s *dev)
FAR struct tiva_ethmac_s *priv = (FAR struct tiva_ethmac_s *)dev->d_private;
int ret;
#ifdef CONFIG_NET_IPv4
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
/* Configure the Ethernet interface for DMA operation. */