aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/debug
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-26 21:28:59 +0800
committerHarald Welte <laforge@gnumonks.org>2010-03-26 21:31:43 +0800
commitdc5062b1850089021199abd686a802b59bed7c46 (patch)
tree45baddefdeb32fee2d29486277b99ff785ff4187 /openbsc/tests/debug
parentb464fb4a8958848273da05505b64f3074430b80f (diff)
move log/debug codebase to libosmocore
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
Diffstat (limited to 'openbsc/tests/debug')
-rw-r--r--openbsc/tests/debug/debug_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsc/tests/debug/debug_test.c b/openbsc/tests/debug/debug_test.c
index 0f0c284ab..695d65c0b 100644
--- a/openbsc/tests/debug/debug_test.c
+++ b/openbsc/tests/debug/debug_test.c
@@ -24,17 +24,17 @@
int main(int argc, char** argv)
{
- struct debug_target *stderr_target;
+ struct log_target *stderr_target;
- debug_init();
- stderr_target = debug_target_create_stderr();
- debug_add_target(stderr_target);
- debug_set_all_filter(stderr_target, 1);
+ log_init(&log_info);
+ stderr_target = log_target_create_stderr();
+ log_add_target(stderr_target);
+ log_set_all_filter(stderr_target, 1);
- debug_parse_category_mask(stderr_target, "DRLL");
+ log_parse_category_mask(stderr_target, "DRLL");
DEBUGP(DCC, "You should not see this\n");
- debug_parse_category_mask(stderr_target, "DRLL:DCC");
+ log_parse_category_mask(stderr_target, "DRLL:DCC");
DEBUGP(DRLL, "You should see this\n");
DEBUGP(DCC, "You should see this\n");
DEBUGP(DMM, "You should not see this\n");