mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 18:00:50 +00:00
Add missing parenthesis in VERIFYF()
Without them the order of operations might get unexpected. Reviewed-by: Adam Moss <c@yotes.com> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #16826
This commit is contained in:
parent
b673bcba4d
commit
17cdb7a2b1
@ -105,7 +105,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line)
|
||||
__FILE__, __FUNCTION__, __LINE__))
|
||||
|
||||
#define VERIFYF(cond, str, ...) do { \
|
||||
if (unlikely(!cond)) \
|
||||
if (unlikely(!(cond))) \
|
||||
spl_panic(__FILE__, __FUNCTION__, __LINE__, \
|
||||
"VERIFY(" #cond ") failed " str "\n", __VA_ARGS__);\
|
||||
} while (0)
|
||||
|
@ -109,7 +109,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line)
|
||||
__FILE__, __FUNCTION__, __LINE__))
|
||||
|
||||
#define VERIFYF(cond, str, ...) do { \
|
||||
if (unlikely(!cond)) \
|
||||
if (unlikely(!(cond))) \
|
||||
spl_panic(__FILE__, __FUNCTION__, __LINE__, \
|
||||
"VERIFY(" #cond ") failed " str "\n", __VA_ARGS__);\
|
||||
} while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user