Add support for wpa_supplicant syslog output

Enable for build: CFLAGS += -DCONFIG_DEBUG_SYSLOG in .config
Enable at runtime: -s on command line
This commit is contained in:
Sam Leffler 2009-03-02 21:40:44 +02:00 committed by Jouni Malinen
parent af12135524
commit daa70d49de
5 changed files with 87 additions and 5 deletions

View file

@ -205,6 +205,23 @@ enum hostapd_logger_level {
};
#ifdef CONFIG_DEBUG_SYSLOG
void wpa_debug_open_syslog(void);
void wpa_debug_close_syslog(void);
#else /* CONFIG_DEBUG_SYSLOG */
static inline void wpa_debug_open_syslog(void)
{
}
static inline void wpa_debug_close_syslog(void)
{
}
#endif /* CONFIG_DEBUG_SYSLOG */
#ifdef EAPOL_TEST
#define WPA_ASSERT(a) \