mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
drivers/net/tun.c: Fix a syslog format
This commit is contained in:
committed by
Xiang Xiao
parent
258f32dd27
commit
8bfd344600
+4
-2
@@ -866,8 +866,10 @@ static int tun_ifup(FAR struct net_driver_s *dev)
|
|||||||
|
|
||||||
#ifdef CONFIG_NET_IPv4
|
#ifdef CONFIG_NET_IPv4
|
||||||
ninfo("Bringing up: %d.%d.%d.%d\n",
|
ninfo("Bringing up: %d.%d.%d.%d\n",
|
||||||
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
|
(int)(dev->d_ipaddr & 0xff),
|
||||||
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
|
(int)((dev->d_ipaddr >> 8) & 0xff),
|
||||||
|
(int)((dev->d_ipaddr >> 16) & 0xff),
|
||||||
|
(int)(dev->d_ipaddr >> 24));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NET_IPv6
|
#ifdef CONFIG_NET_IPv6
|
||||||
ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user