generate backtrace in msgb_abort()

This helps us to debug where we encounter insufficient headroom...
This commit is contained in:
Harald Welte 2010-11-05 07:49:39 +01:00
parent 929d8870d2
commit 088e68aff4
1 changed files with 2 additions and 0 deletions

View File

@ -62,7 +62,9 @@ extern void msgb_reset(struct msgb *m);
#ifdef MSGB_DEBUG
#include <osmocore/panic.h>
#include <osmocore/gsm_utils.h>
#define MSGB_ABORT(msg, fmt, args ...) do { \
generate_backtrace(); \
osmo_panic("msgb(%p)" fmt, ## args); \
} while(0)
#else