aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-10-09 12:16:17 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-10-09 18:16:22 +0200
commit1c407aa99398db56cc88e87c887528d11b5cb936 (patch)
tree1483367373f0e649c607e7c83565f3960904a0d7 /openbsc/include
parent9b07135b92dce6c6b78a9ff0f0a1c6d2df64f9d6 (diff)
gbproxy: Pass the log level as argument to gprs_gb_log_parse_context
Currently, the log level is always LOGL_DEBUG. In case of errors it would be helpful to use a higher log level. This patch adds a log_level parameter to gprs_gb_log_parse_context to let the caller decide about the level. Ticket: OW#1307 Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gprs_gb_parse.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_gb_parse.h b/openbsc/include/openbsc/gprs_gb_parse.h
index 090672b74..4dc5f6ff1 100644
--- a/openbsc/include/openbsc/gprs_gb_parse.h
+++ b/openbsc/include/openbsc/gprs_gb_parse.h
@@ -54,5 +54,6 @@ int gprs_gb_parse_bssgp(uint8_t *bssgp, size_t bssgp_len,
const char *gprs_gb_message_name(const struct gprs_gb_parse_context *parse_ctx,
const char *default_msg_name);
-void gprs_gb_log_parse_context(struct gprs_gb_parse_context *parse_ctx,
+void gprs_gb_log_parse_context(int log_level,
+ struct gprs_gb_parse_context *parse_ctx,
const char *default_msg_name);