diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-01-04 17:42:05 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-01-12 09:51:22 +0000 |
commit | 46c06e28c18241b586ecb5847daa6a5ab6b49b84 (patch) | |
tree | f8292008fcf31097489fac240a415418b42a17b3 /src/libmsc/a_iface_bssap.c | |
parent | 55d22d9e5e0176370c52932ef1928dc8386e9260 (diff) |
add LOG_RAN_CONN() to use the conn->fi->id for context
For each conn, set a default logging category, to distinguish categories for
BSSMAP and RANAP based conns.
LOG_RAN_CONN(): log with the conn's default category,
LOG_RAN_CONN_CAT(): log with a manually set category (mostly for keeping
previous DMM logging on the same category).
In some places, replace LOGP() using manual context with LOG_RAN_CONN(), and
remove the manual context info, now provided by the conn->fi->id.
This is loosely related to inter-BSC and inter-MSC handover: to speed up
refactoring, I want to avoid the need for manual logging context and just use
this LOG_RAN_CONN().
Change-Id: I0a7809840428b1e028df6eb683bc5ffcc8df474a
Diffstat (limited to 'src/libmsc/a_iface_bssap.c')
-rw-r--r-- | src/libmsc/a_iface_bssap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmsc/a_iface_bssap.c b/src/libmsc/a_iface_bssap.c index 491f8d07c..41af93c04 100644 --- a/src/libmsc/a_iface_bssap.c +++ b/src/libmsc/a_iface_bssap.c @@ -35,11 +35,14 @@ #include <osmocom/msc/a_reset.h> #include <osmocom/msc/transaction.h> #include <osmocom/msc/msc_mgcp.h> +#include <osmocom/msc/ran_conn.h> #include <errno.h> #define IP_V4_ADDR_LEN 4 +#define LOGPCONN LOG_RAN_CONN + /* * Helper functions to lookup and allocate subscribers */ |