From 79d2a4b82bc80bb9d0566edd57b02011e5c88920 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 23 Nov 2020 20:37:36 +0900 Subject: [PATCH] net/igmp/igmp_mcastmac.c: Fix syslog formats The following nxstyle errors are known. They are a part of the copyright notice. net/igmp/igmp_mcastmac.c:22:82: error: Long line found net/igmp/igmp_mcastmac.c:29:82: error: Long line found --- net/igmp/igmp_mcastmac.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net/igmp/igmp_mcastmac.c b/net/igmp/igmp_mcastmac.c index 88c12a8cb7..f5ad89b07c 100644 --- a/net/igmp/igmp_mcastmac.c +++ b/net/igmp/igmp_mcastmac.c @@ -45,6 +45,8 @@ #include #include +#include +#include #include #include @@ -79,8 +81,8 @@ static void igmp_mcastmac(in_addr_t *ip, FAR uint8_t *mac) mac[4] = ip4_addr3(*ip); mac[5] = ip4_addr4(*ip); - ninfo("IP: %08x -> MAC: %02x%02x%02x%02x%02x%02x\n", - *ip, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); + ninfo("IP: %08" PRIx32 " -> MAC: %02x%02x%02x%02x%02x%02x\n", + (uint32_t)*ip, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); } /**************************************************************************** @@ -99,7 +101,7 @@ void igmp_addmcastmac(FAR struct net_driver_s *dev, FAR in_addr_t *ip) { uint8_t mcastmac[6]; - ninfo("Adding: IP %08x\n", *ip); + ninfo("Adding: IP %08" PRIx32 "\n", (uint32_t)*ip); if (dev->d_addmac) { igmp_mcastmac(ip, mcastmac); @@ -119,7 +121,7 @@ void igmp_removemcastmac(FAR struct net_driver_s *dev, FAR in_addr_t *ip) { uint8_t mcastmac[6]; - ninfo("Removing: IP %08x\n", *ip); + ninfo("Removing: IP %08" PRIx32 "\n", (uint32_t)*ip); if (dev->d_rmmac) { igmp_mcastmac(ip, mcastmac);