diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-07 21:43:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-09 22:50:01 +0100 |
commit | fde19ed579c3145959301bbe75fde15509276040 (patch) | |
tree | b78eae79616196f470bd65f444975d126cab81d6 /include/osmocom | |
parent | 45a25a322276cca7b5aae4be8d2e494442c25b1d (diff) |
logging: Introduce DLBSSGP logging constant
Historically, BSSGP uses a non-constant, user-configurable integer
varieable for the logging sub-system. Let's replace this with a
statically-allocated library logging constant.
This is required if we want to use the subsystem number in e.g.
static initialized for osmo_fsm.log_subsys.
Change-Id: I506190aae9217c0956e4b5764d1a0c0772268e93
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/core/logging.h | 3 | ||||
-rw-r--r-- | include/osmocom/gprs/gprs_bssgp.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index 418a42ec..c7f89dea 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -121,7 +121,8 @@ void logp(int subsys, const char *file, int line, int cont, const char *format, #define DLJIBUF -18 /*!< Osmocom Jitter Buffer */ #define DLRSPRO -19 /*!< Osmocom Remote SIM Protocol */ #define DLNS -20 /*!< Osmocom NS layer */ -#define OSMO_NUM_DLIB 20 /*!< Number of logging sub-systems in libraries */ +#define DLBSSGP -21 /*!< Osmocom BSSGP layer */ +#define OSMO_NUM_DLIB 21 /*!< Number of logging sub-systems in libraries */ /* Colors that can be used in log_info_cat.color */ #define OSMO_LOGCOLOR_NORMAL NULL diff --git a/include/osmocom/gprs/gprs_bssgp.h b/include/osmocom/gprs/gprs_bssgp.h index dc2a8d0a..dfbd9b73 100644 --- a/include/osmocom/gprs/gprs_bssgp.h +++ b/include/osmocom/gprs/gprs_bssgp.h @@ -233,6 +233,6 @@ void bssgp_fc_flush_queue(struct bssgp_flow_control *fc); /* gprs_bssgp_vty.c */ int bssgp_vty_init(void); -void bssgp_set_log_ss(int ss); +void bssgp_set_log_ss(int ss) OSMO_DEPRECATED("Use DLBSSGP instead!\n"); int bssgp_prim_cb(struct osmo_prim_hdr *oph, void *ctx); |