projects
/
osmocom-bb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core/msgb: Use the new osmo_panic call to handle errors
[osmocom-bb.git]
/
include
/
osmocore
/
msgb.h
diff --git
a/include/osmocore/msgb.h
b/include/osmocore/msgb.h
index
962ba4e
..
354c5d8
100644
(file)
--- a/
include/osmocore/msgb.h
+++ b/
include/osmocore/msgb.h
@@
-61,12
+61,10
@@
extern struct msgb *msgb_dequeue(struct llist_head *queue);
extern void msgb_reset(struct msgb *m);
#ifdef MSGB_DEBUG
extern void msgb_reset(struct msgb *m);
#ifdef MSGB_DEBUG
-#include <stdio.h>
-#include <stdlib.h>
+#include <osmocore/panic.h>
static inline void msgb_abort(struct msgb *msg, const char *text)
{
static inline void msgb_abort(struct msgb *msg, const char *text)
{
- fprintf(stderr, "%s", text);
- abort();
+ osmo_panic("%s", text);
}
#endif
}
#endif