Clean up debug prints to use wpa_printf()
[mech_eap.git] / wpa_supplicant / mesh_rsn.c
index 8354aad..e6ae7c3 100644 (file)
@@ -315,7 +315,8 @@ static void mesh_rsn_send_auth(struct wpa_supplicant *wpa_s,
                " auth_transaction=%d resp=%d (IE len=%lu)",
                MAC2STR(dst), auth_transaction, resp, (unsigned long) ielen);
        if (wpa_drv_send_mlme(wpa_s, buf, len, 0) < 0)
-               perror("send_auth_reply: send");
+               wpa_printf(MSG_INFO, "send_auth_reply: send_mlme failed: %s",
+                          strerror(errno));
 
        os_free(buf);
 }