summaryrefslogtreecommitdiffstats
path: root/gsm.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-04 19:17:27 +0100
committerAndreas Eversberg2010-01-04 19:17:27 +0100
commiteb47421a208cdcbf3a36675f2d4ec2a1dcfc0d3d (patch)
tree58817c686e10d6d919bb82e80b48648b1500b97a /gsm.cpp
parentCorrected debug values for GSM port type. (diff)
downloadlcr-eb47421a208cdcbf3a36675f2d4ec2a1dcfc0d3d.tar.gz
lcr-eb47421a208cdcbf3a36675f2d4ec2a1dcfc0d3d.tar.xz
lcr-eb47421a208cdcbf3a36675f2d4ec2a1dcfc0d3d.zip
Harald provided us with this fix for the current OpenBSC API.
debug_target arg is required for debug parsing.
Diffstat (limited to 'gsm.cpp')
-rw-r--r--gsm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsm.cpp b/gsm.cpp
index 63ba5e5..62df3e3 100644
--- a/gsm.cpp
+++ b/gsm.cpp
@@ -32,6 +32,7 @@ extern int bsc_shutdown_net(struct gsm_network *net);
void talloc_ctx_init(void);
void on_dso_load_token(void);
void on_dso_load_rrlp(void);
+static struct debug_target *stderr_target;
#include "gsm_audio.h"
@@ -1610,8 +1611,9 @@ int gsm_init(void)
}
/* set debug */
+ stderr_target = debug_target_create_stderr();
if (gsm->conf.debug[0])
- debug_parse_category_mask(gsm->conf.debug);
+ debug_parse_category_mask(stderr_target, gsm->conf.debug);
/* open pcap file */
if (gsm->conf.pcapfile[0]) {