diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-10-28 03:53:50 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-11-12 23:23:36 +0100 |
commit | c626da9f87a63604f3819b003dca1f797e4ea600 (patch) | |
tree | 18aff48420442611ba71c80725fe468299d65c4e | |
parent | 153903c8cfb07c3fb6e4f37f5b15e052c68e54f0 (diff) |
gsm/sms: Added DLSMS debugging
Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r-- | include/osmocom/core/logging.h | 3 | ||||
-rw-r--r-- | src/logging.c | 6 |
2 files changed, 8 insertions, 1 deletions
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. */ |