aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-07 21:43:51 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-09 22:50:01 +0100
commitfde19ed579c3145959301bbe75fde15509276040 (patch)
treeb78eae79616196f470bd65f444975d126cab81d6 /src/logging.c
parent45a25a322276cca7b5aae4be8d2e494442c25b1d (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 'src/logging.c')
-rw-r--r--src/logging.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index d60d6e4f..0b4c1ff3 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -238,6 +238,11 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
.description = "GPRS NS layer",
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [INT2IDX(DLBSSGP)] = {
+ .name = "DLBSSGP",
+ .description = "GPRS BSSGP layer",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
};
void assert_loginfo(const char *src)