From 8023d9d4b504398b44e50dce57fb720b6972f26f Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Tue, 19 Nov 2024 09:48:06 -0500 Subject: [PATCH] Fix few __VA_ARGS typos in assertions It should be __VA_ARGS__, not __VA_ARGS. Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Alexander Motin Sponsored by: iXsystems, Inc. Closes #16780 --- include/os/freebsd/spl/sys/debug.h | 4 ++-- include/os/linux/spl/sys/debug.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/os/freebsd/spl/sys/debug.h b/include/os/freebsd/spl/sys/debug.h index 9eb424dd0..615f97351 100644 --- a/include/os/freebsd/spl/sys/debug.h +++ b/include/os/freebsd/spl/sys/debug.h @@ -201,7 +201,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line) "failed (%lld " #OP " %lld) " STR "\n", \ (long long)(_verify3_left), \ (long long)(_verify3_right), \ - __VA_ARGS); \ + __VA_ARGS__); \ } while (0) #define VERIFY3UF(LEFT, OP, RIGHT, STR, ...) do { \ @@ -213,7 +213,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line) "failed (%llu " #OP " %llu) " STR "\n", \ (unsigned long long)(_verify3_left), \ (unsigned long long)(_verify3_right), \ - __VA_ARGS); \ + __VA_ARGS__); \ } while (0) #define VERIFY3PF(LEFT, OP, RIGHT, STR, ...) do { \ diff --git a/include/os/linux/spl/sys/debug.h b/include/os/linux/spl/sys/debug.h index f041dde34..38cc57ae0 100644 --- a/include/os/linux/spl/sys/debug.h +++ b/include/os/linux/spl/sys/debug.h @@ -205,7 +205,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line) "failed (%lld " #OP " %lld) " STR "\n", \ (long long)(_verify3_left), \ (long long)(_verify3_right), \ - __VA_ARGS); \ + __VA_ARGS__); \ } while (0) #define VERIFY3UF(LEFT, OP, RIGHT, STR, ...) do { \ @@ -217,7 +217,7 @@ spl_assert(const char *buf, const char *file, const char *func, int line) "failed (%llu " #OP " %llu) " STR "\n", \ (unsigned long long)(_verify3_left), \ (unsigned long long)(_verify3_right), \ - __VA_ARGS); \ + __VA_ARGS__); \ } while (0) #define VERIFY3PF(LEFT, OP, RIGHT, STR, ...) do { \