laforge has submitted this change. ( 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(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved 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 <lafo...@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <lafo...@osmocom.org> Gerrit-MessageType: merged