mirror of https://gerrit.osmocom.org/libosmocore
msgb: fix printing of msgb pointer during MSGB_ABORT()
This commit is contained in:
parent
46a45a6c4f
commit
dab0287b3f
|
@ -65,7 +65,7 @@ extern void msgb_reset(struct msgb *m);
|
||||||
#include <osmocore/gsm_utils.h>
|
#include <osmocore/gsm_utils.h>
|
||||||
#define MSGB_ABORT(msg, fmt, args ...) do { \
|
#define MSGB_ABORT(msg, fmt, args ...) do { \
|
||||||
generate_backtrace(); \
|
generate_backtrace(); \
|
||||||
osmo_panic("msgb(%p): " fmt, ## args); \
|
osmo_panic("msgb(%p): " fmt, msg, ## args); \
|
||||||
} while(0)
|
} while(0)
|
||||||
#else
|
#else
|
||||||
#define MSGB_ABORT(msg, fmt, args ...)
|
#define MSGB_ABORT(msg, fmt, args ...)
|
||||||
|
|
Loading…
Reference in New Issue