aboutsummaryrefslogtreecommitdiff
path: root/tests/linux-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/linux-test.c')
-rw-r--r--tests/linux-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/linux-test.c b/tests/linux-test.c
index 19c0e1abb9..934b7eeefb 100644
--- a/tests/linux-test.c
+++ b/tests/linux-test.c
@@ -65,7 +65,7 @@ int __chk_error(const char *filename, int line, int ret)
return ret;
}
-#define error(fmt, args...) error1(__FILE__, __LINE__, fmt, ##args)
+#define error(fmt, ...) error1(__FILE__, __LINE__, fmt, ## __VA_ARGS__)
#define chk_error(ret) __chk_error(__FILE__, __LINE__, (ret))