From 8bfd344600da6e73c45e8bc1af8c61833d2bf6e0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 30 Nov 2020 19:45:50 +0900 Subject: [PATCH] drivers/net/tun.c: Fix a syslog format --- drivers/net/tun.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 2009dc4d25..54744da7d4 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -866,8 +866,10 @@ static int tun_ifup(FAR struct net_driver_s *dev) #ifdef CONFIG_NET_IPv4 ninfo("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); + (int)(dev->d_ipaddr & 0xff), + (int)((dev->d_ipaddr >> 8) & 0xff), + (int)((dev->d_ipaddr >> 16) & 0xff), + (int)(dev->d_ipaddr >> 24)); #endif #ifdef CONFIG_NET_IPv6 ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",