diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index ad775b9bc..cc3919b66 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -92,7 +92,7 @@ void logp(int subsys, const char *file, int line, int cont, const char *format, #define DLCTRL -8 /*!< Control Interface */ #define DLGTP -9 /*!< GTP (GPRS Tunneling Protocol */ #define DLSTATS -10 /*!< Statistics */ -#define DLGSUP 11 /*!< Generic Subscriber Update Protocol */ +#define DLGSUP -11 /*!< Generic Subscriber Update Protocol */ #define OSMO_NUM_DLIB 11 /*!< Number of logging sub-systems in libraries */ /*! Configuration of singgle log category / sub-system */ diff --git a/src/logging.c b/src/logging.c index 1516a7d8d..30d0b8da1 100644 --- a/src/logging.c +++ b/src/logging.c @@ -123,6 +123,11 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = { .description = "Statistics messages and logging", .enabled = 1, .loglevel = LOGL_NOTICE, }, + [INT2IDX(DLGSUP)] = { + .name = "DLGSUP", + .description = "Generic Subscriber Update Protocol", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, }; /*! \brief descriptive string for each log level */ diff --git a/tests/gsup/gsup_test.c b/tests/gsup/gsup_test.c index 2b0a29389..7af16b76c 100644 --- a/tests/gsup/gsup_test.c +++ b/tests/gsup/gsup_test.c @@ -241,11 +241,6 @@ static void test_gsup_messages_dec_enc(void) } const struct log_info_cat default_categories[] = { - [DLGSUP] = { - .name = "DLGSUP", - .description = "Generic Subscriber Update Protocol", - .enabled = 0, .loglevel = LOGL_DEBUG, - }, }; static struct log_info info = {