Lines Matching refs:level
45 static int wpa_to_android_level(int level) in wpa_to_android_level() argument
47 if (level == MSG_ERROR) in wpa_to_android_level()
49 if (level == MSG_WARNING) in wpa_to_android_level()
51 if (level == MSG_INFO) in wpa_to_android_level()
104 static int syslog_priority(int level) in syslog_priority() argument
106 switch (level) { in syslog_priority()
204 void wpa_printf(int level, const char *fmt, ...) in wpa_printf() argument
209 if (level >= wpa_debug_level) { in wpa_printf()
211 __android_log_vprint(wpa_to_android_level(level), in wpa_printf()
216 vsyslog(syslog_priority(level), fmt, ap); in wpa_printf()
241 fprintf(wpa_debug_tracing_file, WPAS_TRACE_PFX, level); in wpa_printf()
251 static void _wpa_hexdump(int level, const char *title, const u8 *buf, in _wpa_hexdump() argument
260 level, title, (unsigned long) len); in _wpa_hexdump()
274 if (level < wpa_debug_level) in _wpa_hexdump()
305 __android_log_print(wpa_to_android_level(level), in _wpa_hexdump()
340 syslog(syslog_priority(level), "%s - hexdump(len=%lu):%s", in _wpa_hexdump()
378 void wpa_hexdump(int level, const char *title, const void *buf, size_t len) in wpa_hexdump() argument
380 _wpa_hexdump(level, title, buf, len, 1); in wpa_hexdump()
384 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key() argument
386 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys); in wpa_hexdump_key()
390 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf, in _wpa_hexdump_ascii() argument
401 level, title, (unsigned long) len); in _wpa_hexdump_ascii()
416 if (level < wpa_debug_level) in _wpa_hexdump_ascii()
419 _wpa_hexdump(level, title, buf, len, show); in _wpa_hexdump_ascii()
498 void wpa_hexdump_ascii(int level, const char *title, const void *buf, in wpa_hexdump_ascii() argument
501 _wpa_hexdump_ascii(level, title, buf, len, 1); in wpa_hexdump_ascii()
505 void wpa_hexdump_ascii_key(int level, const char *title, const void *buf, in wpa_hexdump_ascii_key() argument
508 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys); in wpa_hexdump_ascii_key()
607 void wpa_msg(void *ctx, int level, const char *fmt, ...) in wpa_msg() argument
638 wpa_printf(level, "%s%s", prefix, buf); in wpa_msg()
640 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len); in wpa_msg()
645 void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...) in wpa_msg_ctrl() argument
668 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len); in wpa_msg_ctrl()
673 void wpa_msg_global(void *ctx, int level, const char *fmt, ...) in wpa_msg_global() argument
693 wpa_printf(level, "%s", buf); in wpa_msg_global()
695 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len); in wpa_msg_global()
700 void wpa_msg_global_ctrl(void *ctx, int level, const char *fmt, ...) in wpa_msg_global_ctrl() argument
723 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len); in wpa_msg_global_ctrl()
728 void wpa_msg_no_global(void *ctx, int level, const char *fmt, ...) in wpa_msg_no_global() argument
748 wpa_printf(level, "%s", buf); in wpa_msg_no_global()
750 wpa_msg_cb(ctx, level, WPA_MSG_NO_GLOBAL, buf, len); in wpa_msg_no_global()
755 void wpa_msg_global_only(void *ctx, int level, const char *fmt, ...) in wpa_msg_global_only() argument
775 wpa_printf(level, "%s", buf); in wpa_msg_global_only()
777 wpa_msg_cb(ctx, level, WPA_MSG_ONLY_GLOBAL, buf, len); in wpa_msg_global_only()
793 void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, in hostapd_logger() argument
815 hostapd_logger_cb(ctx, addr, module, level, buf, len); in hostapd_logger()
826 const char * debug_level_str(int level) in debug_level_str() argument
828 switch (level) { in debug_level_str()