summaryrefslogtreecommitdiffstats
path: root/src/expr
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/cmp.c b/src/expr/cmp.c
index f3dd62c..5d51958 100644
--- a/src/expr/cmp.c
+++ b/src/expr/cmp.c
@@ -267,7 +267,7 @@ static int nftnl_expr_cmp_snprintf_default(char *buf, size_t size,
int len = size, offset = 0, ret;
ret = snprintf(buf, len, "%s reg %u ",
- expr_cmp_str[cmp->op], cmp->sreg);
+ cmp2str(cmp->op), cmp->sreg);
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
ret = nftnl_data_reg_snprintf(buf+offset, len, &cmp->data,