From a5dc19dc4053e45a4a9ae8facfbdb7393ad5fe69 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 4 Dec 2014 14:35:21 +0100 Subject: 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. --- TODO-RELEASE | 1 + include/osmocom/core/logging.h | 3 ++- src/logging.c | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3