From f14538bf5254954fbfcebbaeef7c7efcdfba0937 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 18 Jan 2015 11:38:40 -0600 Subject: [PATCH] Tiva Ethernet: Don't try to print IPv4 address if IPv4 is not enabled --- arch/arm/src/tiva/tm4c_ethernet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/src/tiva/tm4c_ethernet.c b/arch/arm/src/tiva/tm4c_ethernet.c index 0a0a9f7d3fb..3ac63ba685f 100644 --- a/arch/arm/src/tiva/tm4c_ethernet.c +++ b/arch/arm/src/tiva/tm4c_ethernet.c @@ -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. */