[PATCH 2/3] hostapd: Show version number in the debug log
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Thu Nov 26 08:59:03 PST 2026
From: Johannes Berg <johannes.berg at intel.com>
It's useful to be able to identify the precise version from
the debug log, log the version just like wpa_supplicant does
since commit f19858f5a8dd ("Show wpa_supplicant version number
in the debug log").
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
hostapd/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hostapd/main.c b/hostapd/main.c
index de78a046ca..26cc51596d 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -497,6 +497,8 @@ static int hostapd_global_init(struct hapd_interfaces *interfaces,
return -1;
}
+ wpa_printf(MSG_DEBUG, "hostapd v%s", VERSION_STR);
+
if (eloop_init()) {
wpa_printf(MSG_ERROR, "Failed to initialize event loop");
return -1;
--
2.56.1
More information about the Hostap
mailing list