[PATCH] wpa_supplicant: s/MSG_INFO/MSG_DEBUG/ for messages starting "Successfully"

Andrew Sayers w1.fi at pileofstuff.org
Thu Jan 2 09:21:43 PST 2025


Most messages of the form "Successfully..." are set to MSG_DEBUG.
Standardising the outliers will make logs easier to read.

Signed-off-by: Andrew Sayers <w1.fi at pileofstuff.org>
---
 wpa_supplicant/events.c | 2 +-
 wpa_supplicant/main.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 2be597409..0410cac23 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3111,7 +3111,7 @@ static void wpa_supplicant_set_4addr_mode(struct wpa_supplicant *wpa_s)
 		goto fail;
 	}
 	wpa_s->enabled_4addr_mode = 1;
-	wpa_msg(wpa_s, MSG_INFO, "Successfully set 4addr mode");
+	wpa_msg(wpa_s, MSG_DEBUG, "Successfully set 4addr mode");
 	return;
 
 fail:
diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index 9229eb51f..90b25205f 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -346,7 +346,7 @@ int main(int argc, char *argv[])
 		exitcode = -1;
 		goto out;
 	} else {
-		wpa_printf(MSG_INFO, "Successfully initialized "
+		wpa_printf(MSG_DEBUG, "Successfully initialized "
 			   "wpa_supplicant");
 	}
 
-- 
2.45.2




More information about the Hostap mailing list