Add ifname to vlan_remove_dynamic() debug print

This makes it easier to interpret debug logs for cases where hostapd
control multiple interfaces.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-04-13 17:06:12 +03:00 committed by Jouni Malinen
parent 2e192bd08f
commit 1acf38f1a5

View file

@ -959,7 +959,8 @@ int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id)
if (vlan_id <= 0 || vlan_id > MAX_VLAN_ID) if (vlan_id <= 0 || vlan_id > MAX_VLAN_ID)
return 1; return 1;
wpa_printf(MSG_DEBUG, "VLAN: %s(vlan_id=%d)", __func__, vlan_id); wpa_printf(MSG_DEBUG, "VLAN: %s(ifname=%s vlan_id=%d)",
__func__, hapd->conf->iface, vlan_id);
vlan = hapd->conf->vlan; vlan = hapd->conf->vlan;
while (vlan) { while (vlan) {