fix EC_TEST_CHECK
authorOlivier Matz <zer0@droids-corp.org>
Thu, 17 May 2018 17:44:45 +0000 (19:44 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 17 May 2018 17:44:45 +0000 (19:44 +0200)
lib/ecoli_test.h

index 82094ce..94cd0b9 100644 (file)
@@ -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;                                              \
        }                                                               \