[PATCH] build config: Build fails with CONFIG_NO_STDOUT_DEBUG defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When building with the no std output setting (CONFIG_NO_STDOUT_DEBUG), the build fails with an undefined reference for wpa_debug_stop_log. A simple patch is to 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@xxxxxxxxxxx>
---

diff --git a/src/utils/wpa_debug.h b/src/utils/wpa_debug.h
index 4c02ad3..bf8190f 100644
--- a/src/utils/wpa_debug.h
+++ b/src/utils/wpa_debug.h
@@ -36,6 +36,7 @@
 #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)

--

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux