mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: Reformat value_string to pass our validation scripts
This is a purely cosmetic change in terms of coding style, but it fixes an [invalid] detection for unterminated value_string arrays by our verify_value_string_arrays_are_terminated.py script: Change-Id: I2f2370a673074f6bf5380106b6254b4aa1e8a792 ERROR: file contains unterminated value_string 'struct value_string iso7816_3_card_state_names[]': './deps/simtrace2/firmware/libcommon/source/card_emu.c' ERROR: file contains unterminated value_string 'struct value_string tpdu_state_names[]': './deps/simtrace2/firmware/libcommon/source/card_emu.c'
This commit is contained in:
@@ -303,22 +303,10 @@ static void change_state(enum iso7816_3_sniff_state iso_state_new)
|
||||
}
|
||||
|
||||
const struct value_string data_flags[] = {
|
||||
{
|
||||
.value = SNIFF_DATA_FLAG_ERROR_INCOMPLETE,
|
||||
.str = "incomplete",
|
||||
},
|
||||
{
|
||||
.value = SNIFF_DATA_FLAG_ERROR_MALFORMED,
|
||||
.str = "malformed",
|
||||
},
|
||||
{
|
||||
.value = SNIFF_DATA_FLAG_ERROR_CHECKSUM,
|
||||
.str = "checksum error",
|
||||
},
|
||||
{
|
||||
.value = 0,
|
||||
.str = NULL,
|
||||
},
|
||||
{ SNIFF_DATA_FLAG_ERROR_INCOMPLETE, "incomplete" },
|
||||
{ SNIFF_DATA_FLAG_ERROR_MALFORMED, "malformed" },
|
||||
{ SNIFF_DATA_FLAG_ERROR_CHECKSUM, "checksum error" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
|
||||
static void print_flags(const struct value_string* flag_meanings, uint32_t nb_flags, uint32_t flags) {
|
||||
|
||||
Reference in New Issue
Block a user