gsm/sms: Added DLSMS debugging

Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Andreas Eversberg 2011-10-28 03:53:50 +02:00 committed by Harald Welte
parent 153903c8cf
commit c626da9f87
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -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. */