From c577db2afda7344adc1e719af92d5b146385c903 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Fri, 26 Nov 2010 21:16:36 +0200 Subject: [PATCH] Add interface name to some debug prints This makes it easier to figure out what is happening when controlling multiple interfaces from a single wpa_supplicant process. --- wpa_supplicant/events.c | 2 +- wpa_supplicant/wpa_supplicant.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 6a251f40a..86f995823 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -885,7 +885,7 @@ static void wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s, return; } - wpa_printf(MSG_DEBUG, "New scan results available"); + wpa_printf(MSG_DEBUG, "%s: New scan results available", wpa_s->ifname); wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SCAN_RESULTS); wpas_notify_scan_results(wpa_s); diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 68d171fbf..7a9001df6 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -533,8 +533,8 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s, { enum wpa_states old_state = wpa_s->wpa_state; - wpa_printf(MSG_DEBUG, "State: %s -> %s", - wpa_supplicant_state_txt(wpa_s->wpa_state), + wpa_printf(MSG_DEBUG, "%s: State: %s -> %s", + wpa_s->ifname, wpa_supplicant_state_txt(wpa_s->wpa_state), wpa_supplicant_state_txt(state)); if (state != WPA_SCANNING)