]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Fix integer sizes in string formatting
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:23:15 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:23:15 +0000 (13:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/jail.c
tests/testsuite.h

index 594124e2f4a848748d93fb6de0de52be2a8d8b77..10201b8887ed477e12f9c234a2df76a436b3edd0 100644 (file)
@@ -359,7 +359,7 @@ static ssize_t callback_stdin(struct pakfire_ctx* ctx, void* data, char* buffer,
        // Send another line
        bytes_written = snprintf(buffer, length, "LINE %d\n", *lines);
        if (bytes_written < 0) {
-               LOG_ERROR("Could not write line (%u) to stdin: %m\n", *lines);
+               LOG_ERROR("Could not write line (%d) to stdin: %m\n", *lines);
 
                return 1;
        }
index b964ecfe7c5ae6daa4b983daf5ae64263c34f1cc..746190cc3968c3903d9fd4c223e88ae2d1e9db42 100644 (file)
@@ -190,7 +190,7 @@ ERROR:
        do { \
                if (value1 != value2) { \
                        LOG_ERROR("Failed assertion: " #value1 " (%lld) != " #value2 " (%lld) %s:%d %s\n", \
-                               value1, value2, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
+                               (long long int)value1, (long long int)value2, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                        goto FAIL; \
                } \
        } while (0)