]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_NO_STDOUT_DEBUG=y build
authorAmeer Antar <ameerantar@comcast.net>
Sat, 28 Sep 2024 22:52:06 +0000 (18:52 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 17:03:25 +0000 (19:03 +0200)
When building with the no std output setting (CONFIG_NO_STDOUT_DEBUG),
the build fails with an undefined reference for wpa_debug_stop_log().
Define this as an empty function along with the others at the top of
wpa_debug.h in case no std out is configured.

Signed-off-by: Ameer Antar <ameerantar@comcast.net>
src/utils/wpa_debug.h

index 4c02ad3c775d714cb87039a37d4540ef94dcf0c9..bf8190f27825cc65670c7a02eb45e6cf680197c9 100644 (file)
@@ -36,6 +36,7 @@ enum {
 #define wpa_debug_open_file(p) do { } while (0)
 #define wpa_debug_close_file() do { } while (0)
 #define wpa_debug_setup_stdout() do { } while (0)
+#define wpa_debug_stop_log() do { } while (0)
 #define wpa_dbg(args...) do { } while (0)
 
 static inline int wpa_debug_reopen_file(void)