use osmo_init_logging2
Change-Id: Ifbbfede185aec6573fe7d8bcb49dc5be9f7e7d0b
This commit is contained in:
parent
1f4851e703
commit
f7fa89275d
|
@ -39,8 +39,8 @@ static const struct log_info log_info = {
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
struct nat_rewrite *trie;
|
||||
|
||||
osmo_init_logging(&log_info);
|
||||
void *tall_ctx = talloc_named_const(NULL, 1, "bsc_nat_trie_test");
|
||||
osmo_init_logging2(tall_ctx, &log_info);
|
||||
|
||||
printf("Testing the trie\n");
|
||||
|
||||
|
|
|
@ -1559,9 +1559,10 @@ static const struct log_info log_info = {
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
msgb_talloc_ctx_init(NULL, 0);
|
||||
void *tall_ctx = talloc_named_const(NULL, 1, "bsc_nat_test");
|
||||
msgb_talloc_ctx_init(tall_ctx, 0);
|
||||
sccp_set_log_area(DLSCCP);
|
||||
osmo_init_logging(&log_info);
|
||||
osmo_init_logging2(tall_ctx, &log_info);
|
||||
|
||||
test_filter();
|
||||
test_contrack();
|
||||
|
|
|
@ -140,7 +140,9 @@ static const struct log_info log_info = {
|
|||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
osmo_init_logging(&log_info);
|
||||
void *tall_ctx = talloc_named_const(NULL, 1, "bssap_test");
|
||||
msgb_talloc_ctx_init(tall_ctx, 0);
|
||||
osmo_init_logging2(tall_ctx, &log_info);
|
||||
log_set_use_color(osmo_stderr_target, 0);
|
||||
log_set_print_timestamp(osmo_stderr_target, 0);
|
||||
log_set_print_filename(osmo_stderr_target, 0);
|
||||
|
|
Loading…
Reference in New Issue