diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2013-11-18 23:52:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2014-09-15 18:38:56 +0200 |
commit | 615f9f18fc025757a255f936748fc1e86e922783 (patch) | |
tree | b9cd79ef71984932f4eb5f73437f9593ad2a2604 /lib/log.h | |
parent | 3493b7731b750cbc62f00be94b624a08ccccf0b2 (diff) | |
download | quagga-615f9f18fc025757a255f936748fc1e86e922783.tar.bz2 quagga-615f9f18fc025757a255f936748fc1e86e922783.tar.xz |
lib: include thread information in backtraces
now that we know what thread we're currently executing, let's add that
information to SEGV / assert backtraces.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/log.h')
-rw-r--r-- | lib/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -132,6 +132,8 @@ extern void plog_notice (struct zlog *, const char *format, ...) extern void plog_debug (struct zlog *, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); +extern void zlog_thread_info (int log_level); + /* Set logging level for the given destination. If the log_level argument is ZLOG_DISABLED, then the destination is disabled. This function should not be used for file logging (use zlog_set_file |