Home | History | Annotate | Download | only in utils

Lines Matching full:level

45 static int wpa_to_android_level(int level)
47 if (level == MSG_ERROR)
49 if (level == MSG_WARNING)
51 if (level == MSG_INFO)
104 static int syslog_priority(int level)
106 switch (level) {
195 * @level: priority level (MSG_*) of the message
204 void wpa_printf(int level, const char *fmt, ...)
209 if (level >= wpa_debug_level) {
211 __android_log_vprint(wpa_to_android_level(level),
216 vsyslog(syslog_priority(level), fmt, ap);
241 fprintf(wpa_debug_tracing_file, WPAS_TRACE_PFX, level);
251 static void _wpa_hexdump(int level, const char *title, const u8 *buf,
260 level, title, (unsigned long) len);
274 if (level < wpa_debug_level)
305 __android_log_print(wpa_to_android_level(level),
340 syslog(syslog_priority(level), "%s - hexdump(len=%lu):%s",
378 void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len)
380 _wpa_hexdump(level, title, buf, len, 1);
384 void wpa_hexdump_key(int level, const char *title, const u8 *buf, size_t len)
386 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys);
390 static void _wpa_hexdump_ascii(int level, const char *title, const u8 *buf,
401 level, title, (unsigned long) len);
416 if (level < wpa_debug_level)
419 _wpa_hexdump(level, title, buf, len, show);
498 void wpa_hexdump_ascii(int level, const char *title, const u8 *buf, size_t len)
500 _wpa_hexdump_ascii(level, title, buf, len, 1);
504 void wpa_hexdump_ascii_key(int level, const char *title, const u8 *buf,
507 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys);
594 void wpa_msg(void *ctx, int level, const char *fmt, ...)
621 wpa_printf(level, "%s%s", prefix, buf);
623 wpa_msg_cb(ctx, level, 0, buf, len);
628 void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...)
647 wpa_msg_cb(ctx, level, 0, buf, len);
652 void wpa_msg_global(void *ctx, int level, const char *fmt, ...)
668 wpa_printf(level, "%s", buf);
670 wpa_msg_cb(ctx, level, 1, buf, len);
675 void wpa_msg_no_global(void *ctx, int level, const char *fmt, ...)
691 wpa_printf(level, "%s", buf);
693 wpa_msg_cb(ctx, level, 2, buf, len);
709 void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level,
727 hostapd_logger_cb(ctx, addr, module, level, buf, len);