From b7190804658f2e1e961c271292ae448a1da02e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rob=20N=20=E2=98=85?= Date: Sat, 29 Oct 2022 05:46:44 +1100 Subject: [PATCH] debug: fix output from VERIFY0 assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Richard Yao Signed-off-by: Rob N ★ Closes #14099 --- include/os/freebsd/spl/sys/debug.h | 2 +- include/os/linux/spl/sys/debug.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/os/freebsd/spl/sys/debug.h b/include/os/freebsd/spl/sys/debug.h index 91e2cfe5539c..3e67cf0e9a7d 100644 --- a/include/os/freebsd/spl/sys/debug.h +++ b/include/os/freebsd/spl/sys/debug.h @@ -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) diff --git a/include/os/linux/spl/sys/debug.h b/include/os/linux/spl/sys/debug.h index 8bdc0b1d72d5..007238574fe1 100644 --- a/include/os/linux/spl/sys/debug.h +++ b/include/os/linux/spl/sys/debug.h @@ -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)