examples/ipforward/ipforward.c: Fix printf format warnings
This commit is contained in:
parent
6db2f25f69
commit
4736d33410
@ -265,7 +265,7 @@ static int ipfwd_netconfig(FAR struct ipfwd_tun_s *tun, IPADDR_TYPE ipaddr,
|
|||||||
ret = netlib_set_ipv6addr(tun->it_devname, &addr);
|
ret = netlib_set_ipv6addr(tun->it_devname, &addr);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: netlib_set_ipv6addr() failed\n", ret);
|
fprintf(stderr, "ERROR: netlib_set_ipv6addr() failed with %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,7 +273,8 @@ static int ipfwd_netconfig(FAR struct ipfwd_tun_s *tun, IPADDR_TYPE ipaddr,
|
|||||||
ret = netlib_set_ipv6netmask(tun->it_devname, &addr);
|
ret = netlib_set_ipv6netmask(tun->it_devname, &addr);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: netlib_set_ipv6netmask() failed\n", ret);
|
fprintf(stderr, "ERROR: netlib_set_ipv6netmask() failed with %d\n",
|
||||||
|
ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user