Convert couple of remaining printf to wpa_printf in ap_list
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>
This commit is contained in:
parent
cdebd24db6
commit
01b481aff3
1 changed files with 4 additions and 3 deletions
|
@ -111,8 +111,8 @@ static void ap_ap_hash_del(struct hostapd_iface *iface, struct ap_info *ap)
|
||||||
if (s->hnext != NULL)
|
if (s->hnext != NULL)
|
||||||
s->hnext = s->hnext->hnext;
|
s->hnext = s->hnext->hnext;
|
||||||
else
|
else
|
||||||
printf("AP: could not remove AP " MACSTR " from hash table\n",
|
wpa_printf(MSG_INFO, "AP: could not remove AP " MACSTR
|
||||||
MAC2STR(ap->addr));
|
" from hash table", MAC2STR(ap->addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -182,7 +182,8 @@ void ap_list_process_beacon(struct hostapd_iface *iface,
|
||||||
if (!ap) {
|
if (!ap) {
|
||||||
ap = ap_ap_add(iface, mgmt->bssid);
|
ap = ap_ap_add(iface, mgmt->bssid);
|
||||||
if (!ap) {
|
if (!ap) {
|
||||||
printf("Failed to allocate AP information entry\n");
|
wpa_printf(MSG_INFO,
|
||||||
|
"Failed to allocate AP information entry");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
new_ap = 1;
|
new_ap = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue