sniff: ensure the checksum error flag is also printed

the firmware now also use a generic value_string array (as does the
host application)

Change-Id: I861bd8b52e8f2f2a4786bbe1cc834917119dc394
This commit is contained in:
Kévin Redon
2018-07-28 17:11:21 +02:00
parent 8e84f8125c
commit 697199676e
2 changed files with 37 additions and 18 deletions

View File

@@ -131,14 +131,14 @@ const struct value_string data_flags[] = {
.value = SNIFF_DATA_FLAG_ERROR_MALFORMED,
.str = "malformed",
},
{
.value = 0,
.str = NULL,
},
{
.value = SNIFF_DATA_FLAG_ERROR_CHECKSUM,
.str = "checksum error",
},
{
.value = 0,
.str = NULL,
},
};
static void print_flags(const struct value_string* flag_meanings, uint32_t nb_flags, uint32_t flags) {