dfilter: Fix dfvm code string

All/any equal have their own symbols for operators so cannot
be handled in the same switch case.

Other comparisons don't have different symbols for any/all.
This commit is contained in:
João Valverde 2022-07-13 00:37:12 +01:00
parent 84d230d878
commit 6c8a8d7960
1 changed files with 10 additions and 2 deletions

View File

@ -356,17 +356,25 @@ dfvm_dump_str(wmem_allocator_t *alloc, dfilter_t *df, gboolean print_references)
break;
case DFVM_ALL_EQ:
case DFVM_ANY_EQ:
wmem_strbuf_append_printf(buf, "%05d %s\t\t%s === %s\n",
id, opcode_str, arg1_str, arg2_str);
break;
case DFVM_ANY_EQ:
wmem_strbuf_append_printf(buf, "%05d %s\t\t%s == %s\n",
id, opcode_str, arg1_str, arg2_str);
break;
case DFVM_ALL_NE:
case DFVM_ANY_NE:
wmem_strbuf_append_printf(buf, "%05d %s\t\t%s != %s\n",
id, opcode_str, arg1_str, arg2_str);
break;
case DFVM_ANY_NE:
wmem_strbuf_append_printf(buf, "%05d %s\t\t%s !== %s\n",
id, opcode_str, arg1_str, arg2_str);
break;
case DFVM_ALL_GT:
case DFVM_ANY_GT:
wmem_strbuf_append_printf(buf, "%05d %s\t\t%s > %s\n",