3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
22 void wpa_trace_dump_func(const char *title, void **btrace, int btrace_num)
27 wpa_printf(MSG_INFO, "WPA_TRACE: %s - START", title);
28 sym = backtrace_symbols(btrace, btrace_num);
29 for (i = 0; i < btrace_num; i++)
30 wpa_printf(MSG_INFO, "[%d]: %p: %s",
31 i, btrace[i], sym ? sym[i] : "");
33 wpa_printf(MSG_INFO, "WPA_TRACE: %s - END", title);
37 void wpa_trace_show(const char *title)
42 wpa_trace_record(&info);
43 wpa_trace_dump(title, &info);
46 #endif /* WPA_TRACE */