]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Fix string formatting
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:19:51 +0000 (13:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:19:51 +0000 (13:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.h

index 706df4a5002a1608e97c427a91a12ba703fdc0b9..b964ecfe7c5ae6daa4b983daf5ae64263c34f1cc 100644 (file)
@@ -156,7 +156,7 @@ ERROR:
 #define ASSERT_TRUE(expr) \
        do { \
                if (!(expr)) { \
-                       LOG_ERROR("Failed assertion: " #expr " unexpectedly didn't return true in %s:%d: %m\n", \
+                       LOG_ERROR("Failed assertion: " #expr " unexpectedly didn't return true in %s:%d %s\n", \
                                __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                        goto FAIL; \
                } \
@@ -165,7 +165,7 @@ ERROR:
 #define ASSERT_FALSE(expr) \
        do { \
                if ((expr)) { \
-                       LOG_ERROR("Failed assertion: " #expr " unexpectedly didn't return false in %s:%d: %m\n", \
+                       LOG_ERROR("Failed assertion: " #expr " unexpectedly didn't return false in %s:%d: %s\n", \
                                __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                        goto FAIL; \
                } \