diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-12 16:02:07 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-05-12 16:11:14 +0200 |
commit | 67cd75f9fa0e9c2140cbef08a7774760470e32a1 (patch) | |
tree | 8f64d246e0f535866f56dccb5e9963ebe8dee77a /openbsc/tests/bsc-nat | |
parent | 99beb96fc0fdd2073ec7651e68bcea5d89db0737 (diff) |
misc: Use the osmo_init code for signals and logging
Use the libosmocore code to ignore certain signals by
default (e.g. SIGHUP, SIGPIPE) and use the new code to
create a default stderr logging target and initialize
it properly.
Diffstat (limited to 'openbsc/tests/bsc-nat')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index 6ec22c501..1645f705f 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -27,6 +27,7 @@ #include <openbsc/bsc_nat.h> #include <openbsc/bsc_nat_sccp.h> +#include <osmocom/core/application.h> #include <osmocom/core/talloc.h> #include <osmocom/sccp/sccp.h> @@ -979,13 +980,8 @@ static void test_setup_rewrite() int main(int argc, char **argv) { - struct log_target *stderr_target; - sccp_set_log_area(DSCCP); - 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_filter(); test_contrack(); |