summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-16 18:41:07 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-17 14:38:26 +0100
commit4b3cbccae70c1c82b0896ab07c2d90d9a63e4d36 (patch)
tree378d77e9ea0e8a8d4b2d8dda8358e3ccd3e2fbd0
parent4706c40ef69d1645e3ee9316aac545b0a1b0a96f (diff)
examples/sccp_demo_user: log category name instead of its hex value
-rw-r--r--examples/sccp_demo_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index 4b7b6bc..8cf3c33 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -72,6 +72,8 @@ static void init_logging(void)
void *tall_ctx = talloc_named_const(NULL, 1, "example");
msgb_talloc_ctx_init(tall_ctx, 0);
osmo_init_logging2(tall_ctx, &log_info);
+ log_set_print_category(osmo_stderr_target, true);
+ log_set_print_category_hex(osmo_stderr_target, false);
for (i = 0; i < ARRAY_SIZE(log_cats); i++)
log_set_category_filter(osmo_stderr_target, log_cats[i], 1, LOGL_DEBUG);