modules/hostap: Fix size_t print format specifier
The format specifier for size_t is zu. Using d only works when int and size_t are the same underlying type which is not the case for 64bit systems, which leads to a build warning in this case. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
ea099b039f
commit
faba6325e9
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ static int del_interface(struct supplicant_context *ctx, struct net_if *iface)
|
|||
supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVING, 0);
|
||||
|
||||
if (sizeof(event->interface_status.ifname) < strlen(ifname)) {
|
||||
wpa_printf(MSG_ERROR, "Interface name too long: %s (max: %d)",
|
||||
wpa_printf(MSG_ERROR, "Interface name too long: %s (max: %zu)",
|
||||
ifname, sizeof(event->interface_status.ifname));
|
||||
goto free;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue