trace: Show eloop unregistered handler function name/file/line
This commit is contained in:
parent
94caf8cd62
commit
5e5223bf29
3 changed files with 25 additions and 4 deletions
|
@ -113,8 +113,6 @@ static void read_syms(bfd *abfd)
|
|||
syms = NULL;
|
||||
return;
|
||||
}
|
||||
wpa_printf(MSG_INFO, "BFD: Read %ld symbols (%ld bytes)",
|
||||
symcount, storage);
|
||||
}
|
||||
|
||||
|
||||
|
@ -223,7 +221,6 @@ static void wpa_trace_bfd_init(void)
|
|||
get_prg_fname();
|
||||
if (!prg_fname)
|
||||
return;
|
||||
wpa_printf(MSG_INFO, "BFD[%s]", prg_fname);
|
||||
}
|
||||
|
||||
if (!cached_abfd) {
|
||||
|
@ -241,6 +238,14 @@ static void wpa_trace_bfd_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void wpa_trace_dump_funcname(const char *title, void *pc)
|
||||
{
|
||||
wpa_printf(MSG_INFO, "WPA_TRACE: %s: %p", title, pc);
|
||||
wpa_trace_bfd_init();
|
||||
wpa_trace_bfd_addr(pc);
|
||||
}
|
||||
|
||||
#else /* WPA_TRACE_BFD */
|
||||
|
||||
#define wpa_trace_bfd_init() do { } while (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue