Skip to content

Commit faba632

Browse files
aescolardleach02
authored andcommitted
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 <[email protected]>
1 parent ea099b0 commit faba632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hostap/src/supp_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int del_interface(struct supplicant_context *ctx, struct net_if *iface)
387387
supplicant_generate_state_event(ifname, NET_EVENT_SUPPLICANT_CMD_IFACE_REMOVING, 0);
388388

389389
if (sizeof(event->interface_status.ifname) < strlen(ifname)) {
390-
wpa_printf(MSG_ERROR, "Interface name too long: %s (max: %d)",
390+
wpa_printf(MSG_ERROR, "Interface name too long: %s (max: %zu)",
391391
ifname, sizeof(event->interface_status.ifname));
392392
goto free;
393393
}

0 commit comments

Comments
 (0)