Skip to content
Snippets Groups Projects
Commit c5a14139 authored by Thomas Eichinger's avatar Thomas Eichinger
Browse files

shell/netif: fix wrong type for formating

parent 3d9b656e
No related branches found
No related tags found
No related merge requests found
......@@ -759,7 +759,7 @@ static int _netif_mtu(kernel_pid_t dev, char *mtu_str)
gnrc_ipv6_netif_t *entry;
if (((mtu = atoi(mtu_str)) < IPV6_MIN_MTU) || (mtu > UINT16_MAX)) {
printf("error: MTU must be between %" PRIu16 " and %" PRIu16 "\n",
IPV6_MIN_MTU, UINT16_MAX);
(uint16_t)IPV6_MIN_MTU, (uint16_t)UINT16_MAX);
return 1;
}
if ((entry = gnrc_ipv6_netif_get(dev)) == NULL) {
......@@ -767,7 +767,7 @@ static int _netif_mtu(kernel_pid_t dev, char *mtu_str)
return 1;
}
entry->mtu = IPV6_MIN_MTU;
printf("success: set MTU %" PRIu16 " interface %" PRIkernel_pid "\n", mtu,
printf("success: set MTU %u interface %" PRIkernel_pid "\n", mtu,
dev);
return 0;
#else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment