summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-04 14:35:21 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-04 14:39:14 +0100
commita5dc19dc4053e45a4a9ae8facfbdb7393ad5fe69 (patch)
treeb24e3f2cd3fe238ac3dd7b9086834956eb78800b
parent9f0f978c8daa764d01f0892ef7b5e443f7c551a8 (diff)
gtp: Add a global region for the gtp library of OpenGGSN
We want to use libosmocore/libosmovty in the GGSN sourcecode and reserve a global region here.
-rw-r--r--TODO-RELEASE1
-rw-r--r--include/osmocom/core/logging.h3
-rw-r--r--src/logging.c5
3 files changed, 8 insertions, 1 deletions
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 290fb0ee..4d75b004 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -1,3 +1,4 @@
#library what description / commit summary line
libosmocore abi-change logging: Add ability to save/print current log filters
+libosmocore abi-change gtp: Add a global region for the gtp library of OpenGGSN
libosmovty abi-change vty: Check with the application before writing the config
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 4c893ac4..c37c9f33 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -68,7 +68,8 @@ void logp(int subsys, const char *file, int line, int cont, const char *format,
#define DLMIB -6
#define DLSMS -7
#define DLCTRL -8
-#define OSMO_NUM_DLIB 8
+#define DLGTP -9
+#define OSMO_NUM_DLIB 9
struct log_category {
uint8_t loglevel;
diff --git a/src/logging.c b/src/logging.c
index f9d789d7..a4c3e0ec 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -111,6 +111,11 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
.description = "Control Interface",
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [INT2IDX(DLGTP)] = {
+ .name = "DLGTP",
+ .description = "GPRS GTP library",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
};
/*! \brief descriptive string for each log level */