diff --git a/net/route/net_del_ramroute.c b/net/route/net_del_ramroute.c index 5914dd46d2469..e6645cb25966f 100644 --- a/net/route/net_del_ramroute.c +++ b/net/route/net_del_ramroute.c @@ -90,7 +90,7 @@ static int net_match_ipv4(FAR struct net_route_ipv4_s *route, FAR void *arg) net_ipv4_dumproute("Comparing", route); ninfo("With:\n"); - ninfo(" target=%08" PRIx32 " netmask=%08" PRIx32 "\n", + ninfo(" target=%08lx" PRIx32 " netmask=%08lx" PRIx32 "\n", HTONL(match->target), HTONL(match->netmask)); if (net_ipv4addr_maskcmp(route->target, match->target, match->netmask) &&