summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocore/msgb.h2
-rw-r--r--src/panic.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h
index 44c59cd6..6fd24c7f 100644
--- a/include/osmocore/msgb.h
+++ b/include/osmocore/msgb.h
@@ -62,9 +62,7 @@ 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, msg, ## args); \
} while(0)
#else
diff --git a/src/panic.c b/src/panic.c
index 0c0a9204..5fb7b565 100644
--- a/src/panic.c
+++ b/src/panic.c
@@ -20,6 +20,7 @@
*
*/
+#include <osmocore/gsm_utils.h>
#include <osmocore/panic.h>
#include "../config.h"
@@ -36,6 +37,7 @@ static osmo_panic_handler_t osmo_panic_handler = (void*)0;
static void osmo_panic_default(const char *fmt, va_list args)
{
vfprintf(stderr, fmt, args);
+ generate_backtrace();
abort();
}