firmware/sniffer: Log old and new state in ISO7816-3 state changes

Change-Id: Iddb460cc2ad02c11a74de10dab127bb14cee9605
This commit is contained in:
Harald Welte
2022-11-16 10:37:14 +01:00
committed by laforge
parent c343995b2d
commit 4836f23fa3

View File

@@ -302,9 +302,10 @@ static void change_state(enum iso7816_3_sniff_state iso_state_new)
break;
}
TRACE_INFO("ISO 7816-3 state %u->%u\n\r", iso_state, iso_state_new);
/* save new state */
iso_state = iso_state_new;
TRACE_INFO("Changed to ISO 7816-3 state %u\n\r", iso_state);
}
const struct value_string data_flags[] = {