Skip to content

Commit

Permalink
debug: fix output from VERIFY0 assertion
Browse files Browse the repository at this point in the history
The previous version reported all the right info, but the VERIFY3 name
made a little more confusing when looking for the matching location in
the source code.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Richard Yao <[email protected]>
Signed-off-by: Rob N ★ <[email protected]>
Closes #14099
robn authored Oct 28, 2022
1 parent 8af08a6 commit 5f0a48c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/os/freebsd/spl/sys/debug.h
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line)
const int64_t _verify3_right = (int64_t)(RIGHT); \
if (unlikely(!(_verify3_left == _verify3_right))) \
spl_panic(__FILE__, __FUNCTION__, __LINE__, \
"VERIFY3(0 == " #RIGHT ") " \
"VERIFY0(0 == " #RIGHT ") " \
"failed (0 == %lld)\n", \
(long long) (_verify3_right)); \
} while (0)
2 changes: 1 addition & 1 deletion include/os/linux/spl/sys/debug.h
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line)
const int64_t _verify3_right = (int64_t)(RIGHT); \
if (unlikely(!(_verify3_left == _verify3_right))) \
spl_panic(__FILE__, __FUNCTION__, __LINE__, \
"VERIFY3(0 == " #RIGHT ") " \
"VERIFY0(0 == " #RIGHT ") " \
"failed (0 == %lld)\n", \
(long long) (_verify3_right)); \
} while (0)

0 comments on commit 5f0a48c

Please sign in to comment.