diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-27 19:43:10 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-27 21:11:27 +0000 |
commit | 8fd85578bc7174155e1bb9e98a0d7cdbf85749af (patch) | |
tree | f2f23bd585ebb7fb747dd472d9a71b6daf078725 | |
parent | 38c902b7765c2c689a8dbed8e0f832c504d74845 (diff) |
core/logging.h: Add logging category for jitter buffer
Forthcoming jitter buffer code in libosmo-netif will make use of it.
Change-Id: I2434f9dfa401f736bc62a2ddce920e587cd8c517
-rw-r--r-- | include/osmocom/core/logging.h | 3 | ||||
-rw-r--r-- | src/logging.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h index 617d78e4..e68f6181 100644 --- a/include/osmocom/core/logging.h +++ b/include/osmocom/core/logging.h @@ -121,7 +121,8 @@ void logp(int subsys, const char *file, int line, int cont, const char *format, #define DLSUA -15 /*!< Osmocom SUA */ #define DLM3UA -16 /*!< Osmocom M3UA */ #define DLMGCP -17 /*!< Osmocom MGCP */ -#define OSMO_NUM_DLIB 17 /*!< Number of logging sub-systems in libraries */ +#define DLJIBUF -18 /*!< Osmocom Jitter Buffer */ +#define OSMO_NUM_DLIB 18 /*!< Number of logging sub-systems in libraries */ /*! Configuration of single log category / sub-system */ struct log_category { diff --git a/src/logging.c b/src/logging.c index 66074ea0..147b1fb7 100644 --- a/src/logging.c +++ b/src/logging.c @@ -168,6 +168,11 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = { .description = "libosmo-mgcp Media Gateway Control Protocol", .enabled = 1, .loglevel = LOGL_NOTICE, }, + [INT2IDX(DLJIBUF)] = { + .name = "DLJIBUF", + .description = "libosmo-netif Jitter Buffer", + .enabled = 1, .loglevel = LOGL_NOTICE, + }, }; /*! descriptive string for each log level */ |