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