Change in simtrace2[master]: cardem-pcsc: initialize libosmocore logging

laforge gerrit-no-reply at lists.osmocom.org
Wed Jun 2 20:58:51 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/simtrace2/+/24522 )


Change subject: cardem-pcsc: initialize libosmocore logging
......................................................................

cardem-pcsc: initialize libosmocore logging

Change-Id: I815d39190e944d9512ffc8e5f581515d7be9834f
---
M host/src/simtrace2-cardem-pcsc.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/22/24522/1

diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c
index af34d3f..d43e7f2 100644
--- a/host/src/simtrace2-cardem-pcsc.c
+++ b/host/src/simtrace2-cardem-pcsc.c
@@ -48,6 +48,8 @@
 #include <osmocom/core/socket.h>
 #include <osmocom/core/msgb.h>
 #include <osmocom/core/select.h>
+#include <osmocom/core/logging.h>
+#include <osmocom/core/application.h>
 #include <osmocom/sim/class_tables.h>
 #include <osmocom/sim/sim.h>
 
@@ -425,6 +427,8 @@
 	}
 }
 
+static struct log_info log_info = {};
+
 int main(int argc, char **argv)
 {
 	struct osmo_st2_transport *transp = ci->slot->transp;
@@ -451,6 +455,8 @@
 		return rc;
 	}
 
+	osmo_init_logging2(NULL, &log_info);
+
 	while (1) {
 		int option_index = 0;
 

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

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I815d39190e944d9512ffc8e5f581515d7be9834f
Gerrit-Change-Number: 24522
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210602/0818b2dd/attachment.htm>


More information about the gerrit-log mailing list