From 314be68aa93a543f89d7c0137f25848e4c692653 Mon Sep 17 00:00:00 2001 From: Tom Caputi Date: Wed, 12 Jul 2017 20:15:24 -0400 Subject: [PATCH] Fixed VERIFY3_IMPL() bug from 682ce104 When VERIFY3_IMPL() was adjusted in 682ce104, the values of the operands were omitted from the variadic arguments list. This patch simply corrects this. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Reviewed-by: Giuseppe Di Natale Signed-off-by: Tom Caputi Closes #6343 --- lib/libspl/include/assert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libspl/include/assert.h b/lib/libspl/include/assert.h index b53942094..026d6fef9 100644 --- a/lib/libspl/include/assert.h +++ b/lib/libspl/include/assert.h @@ -72,7 +72,8 @@ do { \ const TYPE __right = (TYPE)(RIGHT); \ if (!(__left OP __right)) \ libspl_assertf(__FILE__, __FUNCTION__, __LINE__, \ - "%s %s %s (0x%llx %s 0x%llx)", #LEFT, #OP, #RIGHT); \ + "%s %s %s (0x%llx %s 0x%llx)", #LEFT, #OP, #RIGHT, \ + (u_longlong_t)__left, #OP, (u_longlong_t)__right); \ } while (0) #define VERIFY3S(x, y, z) VERIFY3_IMPL(x, y, z, int64_t) -- 2.40.0