diff options
author | Martin Willi <martin@revosec.ch> | 2013-03-04 15:45:03 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-03-04 15:45:03 +0100 |
commit | fe03f51302bfd70c26aba53bf17c268e522de99e (patch) | |
tree | 1118d1f4d389a195f6267bc333225ddb798d432f /src/libstrongswan/utils/backtrace.h | |
parent | 8b24863b1fefcf4ed2cfa4c541fe4438a6c51237 (diff) | |
download | strongswan-fe03f51302bfd70c26aba53bf17c268e522de99e.tar.bz2 strongswan-fe03f51302bfd70c26aba53bf17c268e522de99e.tar.xz |
backtrace_t.log() takes a NULL file pointer to log to registered dbg() hook
Diffstat (limited to 'src/libstrongswan/utils/backtrace.h')
-rw-r--r-- | src/libstrongswan/utils/backtrace.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/backtrace.h b/src/libstrongswan/utils/backtrace.h index aeeba4dd6..62104238d 100644 --- a/src/libstrongswan/utils/backtrace.h +++ b/src/libstrongswan/utils/backtrace.h @@ -35,7 +35,10 @@ struct backtrace_t { /** * Log the backtrace to a FILE stream. * - * @param file FILE to log backtrace to + * If no file pointer is given, the backtrace is reported over the debug + * framework to the registered dbg() callback function. + * + * @param file FILE to log backtrace to, NULL for dbg() function * @param detailed TRUE to resolve line/file using addr2line (slow) */ void (*log)(backtrace_t *this, FILE *file, bool detailed); @@ -81,7 +84,7 @@ backtrace_t *backtrace_create(int skip); * Create a backtrace, dump it and clean it up. * * @param label description to print for this backtrace, or NULL - * @param file FILE to log backtrace to + * @param file FILE to log backtrace to, NULL to dbg() function * @param detailed TRUE to resolve line/file using addr2line (slow) */ void backtrace_dump(char *label, FILE *file, bool detailed); |