From 32dec4236e5bf3753bd84715d5e099272ea5d481 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 8 Nov 2017 14:40:36 +0100 Subject: mobile: Add LUA as debug category to the applications Change-Id: Id2d266c48d30c06dfdc3b8c84d875038b43f2ad8 --- src/host/layer23/include/osmocom/bb/common/logging.h | 1 + src/host/layer23/src/common/logging.c | 6 ++++++ src/host/layer23/src/mobile/main.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h index fb1229ef..bf6e6aa0 100644 --- a/src/host/layer23/include/osmocom/bb/common/logging.h +++ b/src/host/layer23/include/osmocom/bb/common/logging.h @@ -24,6 +24,7 @@ enum { DGPS, DMOB, DPRIM, + DLUA, }; extern const struct log_info log_info; diff --git a/src/host/layer23/src/common/logging.c b/src/host/layer23/src/common/logging.c index 7b3ea26b..ed799913 100644 --- a/src/host/layer23/src/common/logging.c +++ b/src/host/layer23/src/common/logging.c @@ -139,6 +139,12 @@ static const struct log_info_cat default_categories[] = { .color = "\033[1;32m", .enabled = 1, .loglevel = LOGL_DEBUG, }, + [DLUA] = { + .name = "DLUA", + .description = "LUA", + .color = "\033[1;32m", + .enabled = 1, .loglevel = LOGL_DEBUG, + }, }; const struct log_info log_info = { diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c index 227cd102..5a28be86 100644 --- a/src/host/layer23/src/mobile/main.c +++ b/src/host/layer23/src/mobile/main.c @@ -70,7 +70,7 @@ int mobile_exit(struct osmocom_ms *ms, int force); const char *debug_default = - "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DSS:DLSMS:DPAG:DSUM:DSAP:DGPS:DMOB:DPRIM"; + "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DSS:DLSMS:DPAG:DSUM:DSAP:DGPS:DMOB:DPRIM:DLUA"; const char *openbsc_copyright = "Copyright (C) 2010-2015 Andreas Eversberg, Sylvain Munaut, Holger Freyther, Harald Welte\n" -- cgit v1.2.3