From 273c504425b3c8623581e4ad5ef92266b8cc030d Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 8 Sep 2017 15:54:39 +0300 Subject: host/layer23: add a new logging category for GAPK Change-Id: I5c3e8553f9bca2ca2e1bf17ee5934e04bd12f605 --- 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(-) (limited to 'src') diff --git a/src/host/layer23/include/osmocom/bb/common/logging.h b/src/host/layer23/include/osmocom/bb/common/logging.h index bf6e6aa0..e9685284 100644 --- a/src/host/layer23/include/osmocom/bb/common/logging.h +++ b/src/host/layer23/include/osmocom/bb/common/logging.h @@ -25,6 +25,7 @@ enum { DMOB, DPRIM, DLUA, + DGAPK, }; 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 ed799913..ccd5e60e 100644 --- a/src/host/layer23/src/common/logging.c +++ b/src/host/layer23/src/common/logging.c @@ -145,6 +145,12 @@ static const struct log_info_cat default_categories[] = { .color = "\033[1;32m", .enabled = 1, .loglevel = LOGL_DEBUG, }, + [DGAPK] = { + .name = "DGAPK", + .description = "GAPK audio", + .color = "\033[0;36m", + .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 aaaa682b..b727bd02 100644 --- a/src/host/layer23/src/mobile/main.c +++ b/src/host/layer23/src/mobile/main.c @@ -64,7 +64,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:DLUA"; + "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DSS:DLSMS:DPAG:DSUM:DSAP:DGPS:DMOB:DPRIM:DLUA:DGAPK"; const char *openbsc_copyright = "Copyright (C) 2010-2015 Andreas Eversberg, Sylvain Munaut, Holger Freyther, Harald Welte\n" -- cgit v1.2.3