From f25a45abea7ea9006b0c6bc9d512319ef4384f2c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 19 Feb 2021 13:39:34 +0100 Subject: tests: Explicitly drop category from log Let's disable category here since we don't care about its formatting here. In any case, every test relying on logging output validation should always explicitly state the config to avoid issues in the future if default values change. Change-Id: I4d48c0c0aa46065560a020369e3b0544385f173e Related: OS#5034 --- tests/acc/acc_test.c | 3 ++- tests/subscr/bsc_subscr_test.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/acc/acc_test.c b/tests/acc/acc_test.c index 73757c7c6..759ff139f 100644 --- a/tests/acc/acc_test.c +++ b/tests/acc/acc_test.c @@ -495,7 +495,8 @@ int main(int argc, char **argv) tall_bsc_ctx = talloc_named_const(NULL, 0, "gsm0408_test"); osmo_init_logging2(tall_bsc_ctx, &log_info); log_set_log_level(osmo_stderr_target, LOGL_INFO); - log_set_print_category_hex(osmo_stderr_target, false); + log_set_print_category_hex(osmo_stderr_target, 0); + log_set_print_category(osmo_stderr_target, 0); log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE); log_set_use_color(osmo_stderr_target, 0); osmo_fsm_log_addr(false); diff --git a/tests/subscr/bsc_subscr_test.c b/tests/subscr/bsc_subscr_test.c index 619d5e6bf..77769a102 100644 --- a/tests/subscr/bsc_subscr_test.c +++ b/tests/subscr/bsc_subscr_test.c @@ -134,6 +134,7 @@ int main() log_set_print_filename(osmo_stderr_target, 0); log_set_print_timestamp(osmo_stderr_target, 0); log_set_use_color(osmo_stderr_target, 0); + log_set_print_category_hex(osmo_stderr_target, 0); log_set_print_category(osmo_stderr_target, 1); bsc_subscribers = talloc_zero(ctx, struct llist_head); -- cgit v1.2.3