From 86c16667f8b53074bffb075f02a3d255eb59c249 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 23 Nov 2020 20:18:04 +0900 Subject: [PATCH] drivers/net/loopback.c: Fix a syslog format --- drivers/net/loopback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index f7e4b55d2d..569e9d6637 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -304,8 +304,8 @@ static int lo_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",