daniel has uploaded this change for review. (
https://gerrit.osmocom.org/c/libosmocore/+/41520?usp=email )
Change subject: Add DLTCAP log category
......................................................................
Add DLTCAP log category
Change-Id: I004dddeeb7db3b47d373bb6281708f33d6e8148f
Related: SYS#5423
---
M include/osmocom/core/logging.h
M src/core/logging.c
2 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/41520/1
diff --git a/include/osmocom/core/logging.h b/include/osmocom/core/logging.h
index 82e686f..9d4f1fb 100644
--- a/include/osmocom/core/logging.h
+++ b/include/osmocom/core/logging.h
@@ -155,7 +155,8 @@
#define DLM2PA -27 /*!< Osmocom M2PA (libosmo-sigtran) */
#define DLM2UA -28 /*!< Reserved for future Osmocom M2UA
(libosmo-sigtran) */
#define DLIO -29 /*!< Osmocom IO sub-system */
-#define OSMO_NUM_DLIB 29 /*!< Number of logging sub-systems in libraries
*/
+#define DLTCAP -30 /*!< Osmocom TCAP */
+#define OSMO_NUM_DLIB 30 /*!< Number of logging sub-systems in libraries
*/
/* Colors that can be used in log_info_cat.color */
#define OSMO_LOGCOLOR_NORMAL NULL
diff --git a/src/core/logging.c b/src/core/logging.c
index e172124..652f253 100644
--- a/src/core/logging.c
+++ b/src/core/logging.c
@@ -393,6 +393,12 @@
.enabled = 1, .loglevel = LOGL_NOTICE,
.color = "\033[38;5;67m",
},
+ [INT2IDX(DLTCAP)] = {
+ .name = "DLTCAP",
+ .description = "libosmo-sigtran TCAP",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ .color = "\033[38;5;69m",
+ },
};
void assert_loginfo(const char *src)
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41520?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I004dddeeb7db3b47d373bb6281708f33d6e8148f
Gerrit-Change-Number: 41520
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <[email protected]>