Skip to content

Commit

Permalink
Fix few __VA_ARGS typos in assertions
Browse files Browse the repository at this point in the history
It should be __VA_ARGS__, not __VA_ARGS.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Rob Norris <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored by: iXsystems, Inc.
Closes #16780
  • Loading branch information
amotin authored Nov 19, 2024
1 parent ff3df12 commit 0d6306b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/os/freebsd/spl/sys/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand All @@ -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 { \
Expand Down
4 changes: 2 additions & 2 deletions include/os/linux/spl/sys/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand All @@ -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 { \
Expand Down

0 comments on commit 0d6306b

Please sign in to comment.