summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2020-12-07 17:00:09 +0100
committerJulius Bünger <buenger@mytum.de>2020-12-07 17:00:09 +0100
commit61f7bf618b336c4d9349067ececdd7e5f051d67c (patch)
treea7831f6dbc8105058dd54b32831fd9e9e5b57409 /src
parent813d74fafbd7d6556edeb94d8654838682624c27 (diff)
-rps: make format strings more portable
Diffstat (limited to 'src')
-rw-r--r--src/rps/rps-test_util.c14
1 files 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;