wpa_supplicant/hostapd / Debug prints More...
#include "includes.h"
#include "common.h"
Go to the source code of this file.
Functions | |
void | wpa_debug_print_timestamp (void) |
Print timestamp for debug output. | |
void | wpa_printf (int level, char *fmt,...) |
conditional printf | |
void | wpa_hexdump (int level, const char *title, const u8 *buf, size_t len) |
conditional hex dump | |
void | wpa_hexdump_key (int level, const char *title, const u8 *buf, size_t len) |
conditional hex dump, hide keys | |
void | wpa_hexdump_ascii (int level, const char *title, const u8 *buf, size_t len) |
conditional hex dump | |
void | wpa_hexdump_ascii_key (int level, const char *title, const u8 *buf, size_t len) |
conditional hex dump, hide keys | |
int | wpa_debug_open_file (const char *path) |
void | wpa_debug_close_file (void) |
void | wpa_msg_register_cb (wpa_msg_cb_func func) |
Register callback function for wpa_msg() messages. | |
void | wpa_msg (void *ctx, int level, char *fmt,...) |
void | wpa_msg_ctrl (void *ctx, int level, char *fmt,...) |
void | hostapd_logger_register_cb (hostapd_logger_cb_func func) |
Register callback function for hostapd_logger(). | |
void | hostapd_logger (void *ctx, const u8 *addr, unsigned int module, int level, const char *fmt,...) |
Variables | |
int | wpa_debug_level = MSG_INFO |
int | wpa_debug_show_keys = 0 |
int | wpa_debug_timestamp = 0 |
wpa_supplicant/hostapd / Debug prints
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file wpa_debug.c.
void hostapd_logger_register_cb | ( | hostapd_logger_cb_func | func | ) |
Register callback function for hostapd_logger().
func | Callback function (NULL to unregister) |
Definition at line 370 of file wpa_debug.c.
void wpa_debug_print_timestamp | ( | void | ) |
Print timestamp for debug output.
This function prints a timestamp in seconds_from_1970.microsoconds format if debug output has been configured to include timestamps in debug messages.
Definition at line 37 of file wpa_debug.c.
void wpa_hexdump | ( | int | level, | |
const char * | title, | |||
const u8 * | buf, | |||
size_t | len | |||
) |
conditional hex dump
level | priority level (MSG_*) of the message | |
title | title of for the message | |
buf | data buffer to be dumped | |
len | length of the buf |
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump.
Definition at line 168 of file wpa_debug.c.
void wpa_hexdump_ascii | ( | int | level, | |
const char * | title, | |||
const u8 * | buf, | |||
size_t | len | |||
) |
conditional hex dump
level | priority level (MSG_*) of the message | |
title | title of for the message | |
buf | data buffer to be dumped | |
len | length of the buf |
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump with both the hex numbers and ASCII characters (for printable range) are shown. 16 bytes per line will be shown.
Definition at line 265 of file wpa_debug.c.
void wpa_hexdump_ascii_key | ( | int | level, | |
const char * | title, | |||
const u8 * | buf, | |||
size_t | len | |||
) |
conditional hex dump, hide keys
level | priority level (MSG_*) of the message | |
title | title of for the message | |
buf | data buffer to be dumped | |
len | length of the buf |
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump with both the hex numbers and ASCII characters (for printable range) are shown. 16 bytes per line will be shown. This works like wpa_hexdump_ascii(), but by default, does not include secret keys (passwords, etc.) in debug output.
Definition at line 271 of file wpa_debug.c.
void wpa_hexdump_key | ( | int | level, | |
const char * | title, | |||
const u8 * | buf, | |||
size_t | len | |||
) |
conditional hex dump, hide keys
level | priority level (MSG_*) of the message | |
title | title of for the message | |
buf | data buffer to be dumped | |
len | length of the buf |
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration. The contents of buf is printed out has hex dump. This works like wpa_hexdump(), but by default, does not include secret keys (passwords, etc.) in debug output.
Definition at line 174 of file wpa_debug.c.
void wpa_msg_register_cb | ( | wpa_msg_cb_func | func | ) |
Register callback function for wpa_msg() messages.
func | Callback function (NULL to unregister) |
Definition at line 313 of file wpa_debug.c.
void wpa_printf | ( | int | level, | |
char * | fmt, | |||
... | ||||
) |
conditional printf
level | priority level (MSG_*) of the message | |
fmt | printf format string, followed by optional arguments |
This function is used to print conditional debugging and error messages. The output may be directed to stdout, stderr, and/or syslog based on configuration.
Note: New line '
' is added to the end of the text when printing to stdout.
Definition at line 100 of file wpa_debug.c.