mirror of
https://github.com/apache/nuttx.git
synced 2026-08-21 13:38:28 +00:00
Tiva Ethernet: Don't try to print IPv4 address if IPv4 is not enabled
This commit is contained in:
parent
41b1f5d9cf
commit
f14538bf52
1 changed files with 4 additions and 0 deletions
|
|
@ -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. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue