aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-27 18:32:35 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-11 03:42:58 +0100
commitc0f00072929b126b21ba7bdfa2c93327ba652d08 (patch)
tree92442c5f1ab1b533ba27047093e8676b7b5223f3 /src/logging.c
parent9795cf1b126d5567dbd0a25b56e9ba75be9513c1 (diff)
import oap message parsing / encoding from openbsc.git; AGPL->GPL
In the process, also: * Change the license from AGPLv3 to GPLv2-or-later; * correct spelling of 'sysmocom' to lowercase; * add '2016' to the copyright; * rename to osmo_*; * add API docs; * add logging category DLOAP: define id and add to internal_cat; * redirect all oap.c logging to DLOAP. A unit test will follow in a subsequent patch, since it needs a minor tweak for decoding of boolean values. The related openbsc change-id is I2f06aaa6eb54eafa860cfed8e72e41d82ff1c4cf. Tweaked-by: Neels Hofmeyr Change-Id: If5099e60681a215e798b6675f21813f26769c253
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index 30d0b8da..92852c9c 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -128,6 +128,11 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
.description = "Generic Subscriber Update Protocol",
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [INT2IDX(DLOAP)] = {
+ .name = "DLOAP",
+ .description = "Osmocom Authentication Protocol",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
};
/*! \brief descriptive string for each log level */