[libnftnl,1/3] tests: bitwise: fix error message.
diff mbox series

Message ID 20200224131201.512755-2-jeremy@azazel.net
State Accepted
Delegated to: Pablo Neira
Headers show
  • bitwise: support for passing mask and xor via registers
Related show

Commit Message

Jeremy Sowden Feb. 24, 2020, 1:11 p.m. UTC
In one case, the boolean test was reporting the wrong mismatched

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
 tests/nft-expr_bitwise-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/tests/nft-expr_bitwise-test.c b/tests/nft-expr_bitwise-test.c
index 74a0e2aa6933..f134728fdd86 100644
--- a/tests/nft-expr_bitwise-test.c
+++ b/tests/nft-expr_bitwise-test.c
@@ -44,7 +44,7 @@  static void cmp_nftnl_expr_bool(struct nftnl_expr *rule_a,
 		print_err("bool", "Expr BITWISE_OP mismatches");
 	if (nftnl_expr_get_u16(rule_a, NFTNL_EXPR_BITWISE_LEN) !=
 	    nftnl_expr_get_u16(rule_b, NFTNL_EXPR_BITWISE_LEN))
-		print_err("bool", "Expr BITWISE_DREG mismatches");
+		print_err("bool", "Expr BITWISE_LEN mismatches");
 	nftnl_expr_get(rule_a, NFTNL_EXPR_BITWISE_MASK, &maska);
 	nftnl_expr_get(rule_b, NFTNL_EXPR_BITWISE_MASK, &maskb);
 	if (maska != maskb)