aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mgcp/mgcp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mgcp/mgcp_test.c')
-rw-r--r--tests/mgcp/mgcp_test.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/mgcp/mgcp_test.c b/tests/mgcp/mgcp_test.c
index 4052377e..b7273de4 100644
--- a/tests/mgcp/mgcp_test.c
+++ b/tests/mgcp/mgcp_test.c
@@ -20,7 +20,8 @@
#include <openbsc/mgcp.h>
#include <openbsc/mgcp_internal.h>
-#include <osmocore/talloc.h>
+#include <osmocom/core/application.h>
+#include <osmocom/core/talloc.h>
#include <string.h>
static struct msgb *create_auep1()
@@ -74,11 +75,7 @@ static void test_auep(void)
int main(int argc, char **argv)
{
- struct log_target *stderr_target;
- log_init(&log_info);
- stderr_target = log_target_create_stderr();
- log_add_target(stderr_target);
- log_set_all_filter(stderr_target, 1);
+ osmo_init_logging(&log_info);
test_auep();
return 0;