aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-09 00:53:17 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-09 02:22:22 +0100
commit6de46595f27b3324a79c1e77368ad1782eaf2be2 (patch)
treee491706a742abef3a0580d70900d82da4592a2ae /include
parentf0dc1be95b2a6f8b9806945ed7d9f1ebe7fc19f4 (diff)
a_iface_bssap.c: Use LOGPCONN() whenever possible
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/a_iface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmocom/msc/a_iface.h b/include/osmocom/msc/a_iface.h
index 466e70b94..9133e1b6b 100644
--- a/include/osmocom/msc/a_iface.h
+++ b/include/osmocom/msc/a_iface.h
@@ -22,8 +22,17 @@
#include <osmocom/msc/a_reset.h>
#include <osmocom/msc/transaction.h>
+#include <osmocom/msc/vlr.h>
#include <osmocom/gsm/protocol/gsm_08_08.h>
+#define LOGPCONN(conn, level, fmt, args...) \
+ LOGP(DMSC, level, "(subscr %s, conn_id %d) " fmt, \
+ vlr_subscr_name(conn ? conn->vsub : NULL), conn ? conn->a.conn_id : -1, \
+ ## args)
+
+#define LOGPBSCCONN(conn, level, fmt, args...) \
+ LOGP(DMSC, level, "(conn_id %u) " fmt, conn ? conn->conn_id : (uint32_t)(-1), ## args)
+
/* A struct to keep a context information about the BSCs we are associated with */
struct bsc_context {
struct llist_head list;