summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-07-21 17:27:31 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-22 16:25:24 +0200
commitf558587cc65c09a42e30c8e357d591e29b0cc6b9 (patch)
tree61780502ff6461112e10c606b99de1233d6730bc
parenta3d37cb278b7d0e17053771b1d9dbdda488a079d (diff)
fixup for: mgcp: display properly mgcp-messages in log
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c
index 5a43c16bf..651c89e5c 100644
--- a/openbsc/src/libmgcp/mgcp_protocol.c
+++ b/openbsc/src/libmgcp/mgcp_protocol.c
@@ -76,6 +76,9 @@ void display_mgcp_message(unsigned char *message, unsigned int len,
unsigned int consumed_line = 0;
unsigned int line_count = 0;
+ if (!log_check_level(DMGCP, LOGL_DEBUG))
+ return;
+
while (1) {
memset(line, 0, sizeof(line));
ptr = line;