From: Michael Tremer Date: Sat, 26 Oct 2024 13:19:51 +0000 (+0000) Subject: tests: Fix string formatting X-Git-Tag: 0.9.30~828 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1119318683a7bcd22b4d0981865a9cd0d87fdbb4;p=pakfire.git tests: Fix string formatting Signed-off-by: Michael Tremer --- diff --git a/tests/testsuite.h b/tests/testsuite.h index 706df4a50..b964ecfe7 100644 --- a/tests/testsuite.h +++ b/tests/testsuite.h @@ -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; \ } \