From 75edb919613ee835e7680e40137e494c7856bcf9 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 5 Apr 2022 22:16:45 +0200 Subject: [PATCH] Fix compilerwarning in logging size_t The pg_fatal log which included filesizes were using UINT64_FORMAT for the size_t variables, which failed on 32 bit buildfarm animals. Change to using plain int instead, which is in line with how digestControlFile is doing it already. Per buildfarm animals florican and lapwing. Discussion: https://postgr.es/m/13C2BF64-4A6D-47E4-9181-3A658F00C9B7@yesql.se --- src/bin/pg_rewind/local_source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_rewind/local_source.c b/src/bin/pg_rewind/local_source.c index 58699effcc..2e50485c39 100644 --- a/src/bin/pg_rewind/local_source.c +++ b/src/bin/pg_rewind/local_source.c @@ -114,8 +114,8 @@ local_queue_fetch_file(rewind_source *source, const char *path, size_t len) * check that the size of the file matches our earlier expectation. */ if (written_len != len) - pg_fatal("size of source file \"%s\" changed concurrently: " UINT64_FORMAT " bytes expected, " UINT64_FORMAT " copied", - srcpath, len, written_len); + pg_fatal("size of source file \"%s\" changed concurrently: %d bytes expected, %d copied", + srcpath, (int) len, (int) written_len); if (close(srcfd) != 0) pg_fatal("could not close file \"%s\": %m", srcpath);