From 61f7bf618b336c4d9349067ececdd7e5f051d67c Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Mon, 7 Dec 2020 17:00:09 +0100 Subject: -rps: make format strings more portable --- src/rps/rps-test_util.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c index b73be3457..497225973 100644 --- a/src/rps/rps-test_util.c +++ b/src/rps/rps-test_util.c @@ -186,9 +186,9 @@ to_file_raw (const char *file_name, const char *buf, size_t size_buf) if (size_buf != size_written) { LOG (GNUNET_ERROR_TYPE_WARNING, - "Unable to write to file! (Size: %zu, size_written: %zu)\n", - size_buf, - size_written); + "Unable to write to file! (Size: %llu, size_written: %llu)\n", + (unsigned long long) size_buf, + (unsigned long long) size_written); if (GNUNET_YES != GNUNET_DISK_file_close (f)) LOG (GNUNET_ERROR_TYPE_WARNING, @@ -197,8 +197,8 @@ to_file_raw (const char *file_name, const char *buf, size_t size_buf) return; } LOG (GNUNET_ERROR_TYPE_WARNING, - "Wrote %zu bytes raw.\n", - size_written); + "Wrote %llu bytes raw.\n", + (unsigned long long) size_written); if (GNUNET_YES != GNUNET_DISK_file_close (f)) LOG (GNUNET_ERROR_TYPE_WARNING, "Unable to close file\n"); @@ -238,8 +238,8 @@ to_file_raw_unaligned (const char *file_name, "num_bits_buf_unaligned: %u\n", num_bits_buf_unaligned); LOG (GNUNET_ERROR_TYPE_DEBUG, - "ua args: size_buf: %zu, bits_needed: %u -> iter: %u\n", - size_buf, + "ua args: size_buf: %llu, bits_needed: %u -> iter: %u\n", + (unsigned long long) size_buf, bits_needed, bytes_iter); buf_write[0] = buf_unaligned; -- cgit v1.2.3