• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/wpa/src/utils/

Lines Matching defs: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)
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, ...)
214 if (level >= wpa_debug_level) {
216 __android_log_vprint(wpa_to_android_level(level),
221 vsyslog(syslog_priority(level), fmt, ap);
246 fprintf(wpa_debug_tracing_file, WPAS_TRACE_PFX, level);
256 static void _wpa_hexdump(int level, const char *title, const u8 *buf,
265 level, title, (unsigned long) len);
279 if (level < wpa_debug_level)
310 __android_log_print(wpa_to_android_level(level),
345 syslog(syslog_priority(level), "%s - hexdump(len=%lu):%s",
383 void wpa_hexdump(int level, const char *title, const void *buf, size_t len)
385 _wpa_hexdump(level, title, buf, len, 1);
389 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len)
391 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys);
395 static void _wpa_hexdump_ascii(int level, const char *title, const void *buf,
406 level, title, (unsigned long) len);
421 if (level < wpa_debug_level)
424 _wpa_hexdump(level, title, buf, len, show);
428 _wpa_hexdump(level, title, buf, len, show);
509 void wpa_hexdump_ascii(int level, const char *title, const void *buf,
512 _wpa_hexdump_ascii(level, title, buf, len, 1);
516 void wpa_hexdump_ascii_key(int level, const char *title, const void *buf,
519 _wpa_hexdump_ascii(level, title, buf, len, wpa_debug_show_keys);
638 void wpa_msg(void *ctx, int level, const char *fmt, ...)
669 wpa_printf(level, "%s%s", prefix, buf);
671 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len);
676 void wpa_msg_ctrl(void *ctx, int level, const char *fmt, ...)
699 wpa_msg_cb(ctx, level, WPA_MSG_PER_INTERFACE, buf, len);
704 void wpa_msg_global(void *ctx, int level, const char *fmt, ...)
724 wpa_printf(level, "%s", buf);
726 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len);
731 void wpa_msg_global_ctrl(void *ctx, int level, const char *fmt, ...)
754 wpa_msg_cb(ctx, level, WPA_MSG_GLOBAL, buf, len);
759 void wpa_msg_no_global(void *ctx, int level, const char *fmt, ...)
779 wpa_printf(level, "%s", buf);
781 wpa_msg_cb(ctx, level, WPA_MSG_NO_GLOBAL, buf, len);
786 void wpa_msg_global_only(void *ctx, int level, const char *fmt, ...)
806 wpa_printf(level, "%s", buf);
808 wpa_msg_cb(ctx, level, WPA_MSG_ONLY_GLOBAL, buf, len);
824 void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level,
846 hostapd_logger_cb(ctx, addr, module, level, buf, len);
857 const char * debug_level_str(int level)
859 switch (level) {