Skip to content

Commit

Permalink
Fix CI error in net_del_ramroute.c when compile for ESP32
Browse files Browse the repository at this point in the history
The CI was reporting this error in xtensa/esp32 compilation:

error: format specifies type 'unsigned int' but the argument
has type 'unsigned long long'

Signed-off-by: Alan C. Assis <[email protected]>
  • Loading branch information
acassis committed Oct 17, 2023
1 parent c5a4885 commit d0eca2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/route/net_del_ramroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ 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",
HTONL(match->target), HTONL(match->netmask));
(unsigned int)HTONL(match->target),
(unsigned int)HTONL(match->netmask));

if (net_ipv4addr_maskcmp(route->target, match->target, match->netmask) &&
net_ipv4addr_cmp(route->netmask, match->netmask))
Expand Down

0 comments on commit d0eca2f

Please sign in to comment.