From: Olivier Matz Date: Thu, 17 May 2018 17:44:45 +0000 (+0200) Subject: fix EC_TEST_CHECK X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=commitdiff_plain;h=fdf635f98a318982e6b7d17097a0dd3a4dfeb27c fix EC_TEST_CHECK --- diff --git a/lib/ecoli_test.h b/lib/ecoli_test.h index 82094ce..94cd0b9 100644 --- a/lib/ecoli_test.h +++ b/lib/ecoli_test.h @@ -62,7 +62,7 @@ int ec_test_check_parse(struct ec_node *node, int expected, ...); #define EC_TEST_CHECK(cond, fmt, ...) ({ \ int ret_ = 0; \ if (!(cond)) { \ - EC_TEST_ERR("(" #cond ") is wrong. " \ + EC_TEST_ERR("(" #cond ") is wrong. " fmt \ ##__VA_ARGS__); \ ret_ = -1; \ } \