Change in libosmo-sccp[master]: examples/sccp_demo_user: log category name instead of its hex value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Jan 16 17:41:11 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16899 )


Change subject: examples/sccp_demo_user: log category name instead of its hex value
......................................................................

examples/sccp_demo_user: log category name instead of its hex value

Change-Id: I57afb4cacdb3c118c7570d924caa23144d192aa8
---
M examples/sccp_demo_user.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/99/16899/1

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 @@
 	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);

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16899
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I57afb4cacdb3c118c7570d924caa23144d192aa8
Gerrit-Change-Number: 16899
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200116/e65a1ccf/attachment.htm>


More information about the gerrit-log mailing list