diff options
author | Tom Caputi <[email protected]> | 2017-07-12 20:15:24 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-07-12 17:15:24 -0700 |
commit | 314be68aa93a543f89d7c0137f25848e4c692653 (patch) | |
tree | e631093e411590f7e61ae89861410d4c99a4546b /lib/libspl | |
parent | cf8738d85374f51298a0872bcd58257bbb4fda6d (diff) |
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 <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Closes #6343
Diffstat (limited to 'lib/libspl')
-rw-r--r-- | lib/libspl/include/assert.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) |