]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: Fix macro missing format string
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 14 Jun 2014 14:14:58 +0000 (11:14 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 14 Jun 2014 14:14:58 +0000 (11:14 -0300)
testsuite/testsuite.h

index 47b72fd46955e17497c7fdf81950154024a713b9..c90a1d5e68bf25407a4d086ed8a7bd22cf0c30a0 100644 (file)
@@ -122,7 +122,7 @@ int test_run(const struct test *t);
 #define assert_return(expr, r)                                         \
        do {                                                            \
                if ((!(expr))) {                                        \
-                       ERR("Failed assertion: " #expr,                 \
+                       ERR("Failed assertion: " #expr "%s:%d %s",                      \
                            __FILE__, __LINE__, __PRETTY_FUNCTION__);   \
                        return (r);                                     \
                }                                                       \