]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Convert couple of remaining printf to wpa_printf in ap_list
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Jan 2015 19:12:51 +0000 (21:12 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 29 Jan 2015 19:12:51 +0000 (21:12 +0200)
This type of error reporting cases should use wpa_printf() to get
consistent debug logging behavior.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_list.c

index 287d520ac74549fb190912f24fc17cd9a0cb1695..04a56a95efd91b903fa2112acb932648b881b660 100644 (file)
@@ -111,8 +111,8 @@ static void ap_ap_hash_del(struct hostapd_iface *iface, struct ap_info *ap)
        if (s->hnext != NULL)
                s->hnext = s->hnext->hnext;
        else
-               printf("AP: could not remove AP " MACSTR " from hash table\n",
-                      MAC2STR(ap->addr));
+               wpa_printf(MSG_INFO, "AP: could not remove AP " MACSTR
+                          " from hash table",  MAC2STR(ap->addr));
 }
 
 
@@ -182,7 +182,8 @@ void ap_list_process_beacon(struct hostapd_iface *iface,
        if (!ap) {
                ap = ap_ap_add(iface, mgmt->bssid);
                if (!ap) {
-                       printf("Failed to allocate AP information entry\n");
+                       wpa_printf(MSG_INFO,
+                                  "Failed to allocate AP information entry");
                        return;
                }
                new_ap = 1;