diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-18 11:38:40 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-18 11:38:40 -0600 |
commit | ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18 (patch) | |
tree | acf0fb68113e5cd22a4f15e2828b368a41611cf8 /nuttx | |
parent | c61e3256781a68f683307f56f0aee1ca1b707d63 (diff) | |
download | px4-nuttx-ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18.tar.gz px4-nuttx-ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18.tar.bz2 px4-nuttx-ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18.zip |
Tiva Ethernet: Don't try to print IPv4 address if IPv4 is not enabled
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/arch/arm/src/tiva/tm4c_ethernet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c index 0a0a9f7d3..3ac63ba68 100644 --- a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c +++ b/nuttx/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. */ |