smlc_subscr_test: Replace use of deprecated log_set_print_filename() API

hex_category is also set explicitly to keep same results (old API used
to set it internally).

Change-Id: I49365dfcd24bed55101917d2ea034c4327ab51d6
This commit is contained in:
Pau Espin 2021-02-24 14:28:35 +01:00
parent b36a18f139
commit 14c9c7bcd7
1 changed files with 2 additions and 2 deletions

View File

@ -140,10 +140,11 @@ int main()
void *ctx = talloc_named_const(NULL, 0, "smlc_subscr_test");
osmo_init_logging2(ctx, &log_info);
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
log_set_print_timestamp(osmo_stderr_target, 0);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_category(osmo_stderr_target, 1);
log_set_print_category_hex(osmo_stderr_target, 0);
g_smlc = smlc_state_alloc(ctx);
@ -154,4 +155,3 @@ int main()
printf("Done\n");
return 0;
}