From 5065d470cec41c361f5940054461851444045b2b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 23 Nov 2020 20:30:06 +0900 Subject: [PATCH] netutils/netlib/netlib_ipmsfilter.c: Fix a syslog format --- netutils/netlib/netlib_ipmsfilter.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/netutils/netlib/netlib_ipmsfilter.c b/netutils/netlib/netlib_ipmsfilter.c index 8898b9222..84e00ded6 100644 --- a/netutils/netlib/netlib_ipmsfilter.c +++ b/netutils/netlib/netlib_ipmsfilter.c @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -86,10 +87,13 @@ int ipmsfilter(FAR const struct in_addr *interface, { int ret = ERROR; - ninfo("interface: %08x muliaddr: %08x fmode: %ld\n", - interface, *multiaddr, fmode); if (interface != NULL && multiaddr != NULL) { + ninfo("interface: %08" PRIx32 " muliaddr: %08" PRIx32 + " fmode: %" PRId32 "\n", + (uint32_t)interface->s_addr, + (uint32_t)multiaddr->s_addr, fmode); + /* Get a socket (only so that we get access to the INET subsystem) */ int sockfd = socket(PF_INET, NETLIB_SOCK_TYPE, 0);