]> git.proxmox.com Git - mirror_zfs.git/commitdiff
debug: fix output from VERIFY0 assertion
authorRob N ★ <robn@despairlabs.com>
Fri, 28 Oct 2022 18:46:44 +0000 (05:46 +1100)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 18:46:44 +0000 (11:46 -0700)
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 <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Rob N ★ <robn@despairlabs.com>
Closes #14099

include/os/freebsd/spl/sys/debug.h
include/os/linux/spl/sys/debug.h

index 91e2cfe5539ce80307c3a25149504feda7f5b7a1..3e67cf0e9a7d88ea88656e3fd93f459a338bfb17 100644 (file)
@@ -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)
index 8bdc0b1d72d56f9b38b30ca336e6c72b87b124de..007238574fe13ee6904088e4b7c34dc4598e3f2e 100644 (file)
@@ -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)