diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-04-03 22:16:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-04-10 11:48:34 +0200 |
commit | 4881c5c1696e896cf4fdde4008856b082956a8b4 (patch) | |
tree | b39d5cfd1ae92ca2efc68204a5a5e38f89e3bb59 /src/xua_msg.c | |
parent | 996defec1733a285f8aad9cfe426606b8dc8899f (diff) |
xua: Remove library-internal DXUA log subsystem
We don't really need those thre log messages, and we can thus do away
with the library-internal log-subsystem of DXUA. The rest of
libosmo-sigtran uses the new globa DL... subsystems anyway
Change-Id: Iea0d3db34a3674a9c6422b174a879bfdaa25786f
Diffstat (limited to 'src/xua_msg.c')
-rw-r--r-- | src/xua_msg.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/xua_msg.c b/src/xua_msg.c index 27279ce..cb487c8 100644 --- a/src/xua_msg.c +++ b/src/xua_msg.c @@ -32,17 +32,14 @@ #include <errno.h> static void *tall_xua; -int DXUA = -1; struct xua_msg *xua_msg_alloc(void) { struct xua_msg *msg; msg = talloc_zero(tall_xua, struct xua_msg); - if (!msg) { - LOGP(DXUA, LOGL_ERROR, "Failed to allocate.\n"); + if (!msg) return NULL; - } INIT_LLIST_HEAD(&msg->headers); return msg; @@ -162,7 +159,6 @@ struct xua_msg *xua_from_msg(const int version, uint16_t len, uint8_t *data) return msg; fail: - LOGP(DXUA, LOGL_ERROR, "Failed to parse.\n"); xua_msg_free(msg); return NULL; } @@ -175,10 +171,8 @@ struct msgb *xua_to_msg(const int version, struct xua_msg *xua) uint8_t rest; msg = msgb_alloc_headroom(2048, 512, "xua msg"); - if (!msg) { - LOGP(DXUA, LOGL_ERROR, "Failed to allocate.\n"); + if (!msg) return NULL; - } msg->l2h = msgb_put(msg, sizeof(*hdr)); hdr = (struct xua_common_hdr *) msg->l2h; @@ -209,12 +203,6 @@ struct msgb *xua_to_msg(const int version, struct xua_msg *xua) return msg; } -void xua_set_log_area(int log_area) -{ - DXUA = log_area; -} - - /*********************************************************************** * Message encoding helper functions ***********************************************************************/ |