From c626da9f87a63604f3819b003dca1f797e4ea600 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Fri, 28 Oct 2011 03:53:50 +0200 Subject: gsm/sms: Added DLSMS debugging Written-by: Andreas Eversberg Signed-off-by: Sylvain Munaut --- include/osmocom/core/logging.h | 3 ++- src/logging.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index b207c1b4..043a8509 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -67,7 +67,8 @@ void logp(int subsys, char *file, int line, int cont, const char *format, ...) _ #define DLMUX -4 #define DLMI -5 #define DLMIB -6 -#define OSMO_NUM_DLIB 6 +#define DLSMS -7 +#define OSMO_NUM_DLIB 7 struct log_category { uint8_t loglevel; diff --git a/src/logging.c b/src/logging.c index db00331a..f8ed4cb1 100644 --- a/src/logging.c +++ b/src/logging.c @@ -100,6 +100,12 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = { .description = "A-bis Input Driver for B-Channels (voice)", .enabled = 0, .loglevel = LOGL_NOTICE, }, + [INT2IDX(DLSMS)] = { + .name = "DLSMS", + .description = "Layer3 Short Message Service (SMS)", + .enabled = 1, .loglevel = LOGL_NOTICE, + .color = "\033[1;38m", + }, }; /* You have to keep this in sync with the structure loglevel_strs. */ -- cgit v1.2.3