]> git.droids-corp.org - protos/libecoli.git/commitdiff
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 82094ce224ffea64da46c62258ccc10eb3d5b911..94cd0b9ba78a93ac4d716ef8f639d0af4e4418ca 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;                                              \
        }                                                               \