Change in simtrace2[master]: sniff: increase debug output

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Jul 29 09:22:35 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10213 )

Change subject: sniff: increase debug output
......................................................................

sniff: increase debug output

Change-Id: Ife0bbcf4a25aaa445a36768c00004e6e0d9a4947
---
M firmware/libcommon/source/sniffer.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/firmware/libcommon/source/sniffer.c b/firmware/libcommon/source/sniffer.c
index c57877f..982653c 100644
--- a/firmware/libcommon/source/sniffer.c
+++ b/firmware/libcommon/source/sniffer.c
@@ -299,7 +299,7 @@
 
 	/* save new state */
 	iso_state = iso_state_new;
-	//TRACE_INFO("Changed to ISO 7816-3 state %u\n\r", iso_state); /* don't print since this is function is also called by ISRs */
+	TRACE_INFO("Changed to ISO 7816-3 state %u\n\r", iso_state);
 }
 
 const struct value_string data_flags[] = {
@@ -1052,11 +1052,13 @@
 		if (change_flags & SNIFF_CHANGE_FLAG_RESET_ASSERT) {
 			if (ISO7816_S_RESET != iso_state) {
 				change_state(ISO7816_S_RESET);
+				printf("reset asserted\n\r");
 			}
 		}
 		if (change_flags & SNIFF_CHANGE_FLAG_RESET_DEASSERT) {
 			if (ISO7816_S_WAIT_ATR != iso_state) {
 				change_state(ISO7816_S_WAIT_ATR);
+				printf("reset de-asserted\n\r");
 			}
 		}
 		if (change_flags & SNIFF_CHANGE_FLAG_TIMEOUT_WT) {

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

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ife0bbcf4a25aaa445a36768c00004e6e0d9a4947
Gerrit-Change-Number: 10213
Gerrit-PatchSet: 3
Gerrit-Owner: Kévin Redon <kredon at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Kévin Redon <kredon at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180729/f65f54de/attachment.htm>


More information about the gerrit-log mailing list