Lines Matching refs:level

47 static int wpa_to_android_level(int level)  in wpa_to_android_level()  argument
49 if (level == MSG_ERROR) in wpa_to_android_level()
51 if (level == MSG_WARNING) in wpa_to_android_level()
53 if (level == MSG_INFO) in wpa_to_android_level()
108 static int syslog_priority(int level) in syslog_priority() argument
110 switch (level) { in syslog_priority()
209 void wpa_printf(int level, const char *fmt, ...) in wpa_printf() argument
213 if (level >= wpa_debug_level) { in wpa_printf()
216 __android_log_vprint(wpa_to_android_level(level), in wpa_printf()
223 vsyslog(syslog_priority(level), fmt, ap); in wpa_printf()
248 fprintf(wpa_debug_tracing_file, WPAS_TRACE_PFX, level); in wpa_printf()
258 static void _wpa_hexdump(int level, const char *title, const u8 *buf, in _wpa_hexdump() argument
267 level, title, (unsigned long) len); in _wpa_hexdump()
281 if (level < wpa_debug_level) in _wpa_hexdump()
312 __android_log_print(wpa_to_android_level(level), in _wpa_hexdump()
347 syslog(syslog_priority(level), "%s - hexdump(len=%lu):%s", in _wpa_hexdump()
385 void wpa_hexdump(int level, const char *title, const void *buf, size_t len) in wpa_hexdump() argument
387 _wpa_hexdump(level, title, buf, len, 1, 0); in wpa_hexdump()
391 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key() argument
393 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys, 0); in wpa_hexdump_key()
397 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf, in _wpa_hexdump_ascii() argument
408 level, title, (unsigned long) len); in _wpa_hexdump_ascii()
423 if (level < wpa_debug_level) in _wpa_hexdump_ascii()
426 _wpa_hexdump(level, title, buf, len, show, 0); in _wpa_hexdump_ascii()
430 _wpa_hexdump(level, title, buf, len, show, 1); in _wpa_hexdump_ascii()
510 void wpa_hexdump_ascii(int level, const char *title, const void *buf, in wpa_hexdump_ascii() argument
513 _wpa_hexdump_ascii(level, title, buf, len, 1); in wpa_hexdump_ascii()
517 void wpa_hexdump_ascii_key(int level, const char *title, const void *buf, in wpa_hexdump_ascii_key() argument
520 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys); in wpa_hexdump_ascii_key()
647 void wpa_msg(void *ctx, int level, const char *fmt, ...) in wpa_msg() argument
678 wpa_printf(level, "%s%s", prefix, buf); in wpa_msg()
680 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len); in wpa_msg()
685 void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...) in wpa_msg_ctrl() argument
708 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len); in wpa_msg_ctrl()
713 void wpa_msg_global(void *ctx, int level, const char *fmt, ...) in wpa_msg_global() argument
733 wpa_printf(level, "%s", buf); in wpa_msg_global()
735 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len); in wpa_msg_global()
740 void wpa_msg_global_ctrl(void *ctx, int level, const char *fmt, ...) in wpa_msg_global_ctrl() argument
763 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len); in wpa_msg_global_ctrl()
768 void wpa_msg_no_global(void *ctx, int level, const char *fmt, ...) in wpa_msg_no_global() argument
788 wpa_printf(level, "%s", buf); in wpa_msg_no_global()
790 wpa_msg_cb(ctx, level, WPA_MSG_NO_GLOBAL, buf, len); in wpa_msg_no_global()
795 void wpa_msg_global_only(void *ctx, int level, const char *fmt, ...) in wpa_msg_global_only() argument
815 wpa_printf(level, "%s", buf); in wpa_msg_global_only()
817 wpa_msg_cb(ctx, level, WPA_MSG_ONLY_GLOBAL, buf, len); in wpa_msg_global_only()
833 void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, in hostapd_logger() argument
855 hostapd_logger_cb(ctx, addr, module, level, buf, len); in hostapd_logger()
866 const char * debug_level_str(int level) in debug_level_str() argument
868 switch (level) { in debug_level_str()