diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-09 00:53:17 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-09 02:22:22 +0100 |
commit | 6de46595f27b3324a79c1e77368ad1782eaf2be2 (patch) | |
tree | e491706a742abef3a0580d70900d82da4592a2ae /include | |
parent | f0dc1be95b2a6f8b9806945ed7d9f1ebe7fc19f4 (diff) |
a_iface_bssap.c: Use LOGPCONN() whenever possible
Change-Id: Ic1c9d14b892154d51165598338d23a924a772265
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/msc/a_iface.h | 9 |
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; |