aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-18 17:55:35 +0100
committerlynxis lazus <lynxis@fe80.eu>2021-03-24 15:42:45 +0000
commit6cf65d9d81d4c4d8863d06876b292679513d1fc8 (patch)
tree9abd6b48b1247be58b57f079d0229dd7cf0916ea /src/logging.c
parent2d807b6c7d8ea58ad79e11ed5c66cf43c8b21163 (diff)
gprs_ns2: rework logging of Rx and Tx NS PDU
Introduce 2 new logging sub systems for signal and unit data. Unify log messages so all log messages look similiar. Log also Rx PDUs. Ensure dropped Tx packets (BLOCK/RESET on SNS) contain *Tx*. Change-Id: I34b8fde2955ecc010d1dcd9512e1bba9211e2c0d
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index c2a0453f..4517afcd 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -277,6 +277,18 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
.enabled = 1, .loglevel = LOGL_NOTICE,
.color = "\033[38;5;59m",
},
+ [INT2IDX(DLNSDATA)] = {
+ .name = "DLNSDATA",
+ .description = "GPRS NS layer data PDU",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ .color = "\033[38;5;61m",
+ },
+ [INT2IDX(DLNSSIGNAL)] = {
+ .name = "DLNSSIGNAL",
+ .description = "GPRS NS layer signal PDU",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ .color = "\033[38;5;63m",
+ },
};
void assert_loginfo(const char *src)