From: Andres Freund Date: Thu, 30 Mar 2023 16:50:18 +0000 (-0700) Subject: Fix format code in fd.c debugging infrastructure X-Git-Tag: REL_16_BETA1~382 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9054b7a7cd47b93d6a59f15994ce72c51fe1e04;p=thirdparty%2Fpostgresql.git Fix format code in fd.c debugging infrastructure These were not sufficiently adjusted in 2d4f1ba6cfc. --- diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 9fd8444ed4d..2ac365e97cc 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -1988,9 +1988,9 @@ FilePrefetch(File file, off_t offset, off_t amount, uint32 wait_event_info) Assert(FileIsValid(file)); - DO_DB(elog(LOG, "FilePrefetch: %d (%s) " INT64_FORMAT " %d", + DO_DB(elog(LOG, "FilePrefetch: %d (%s) " INT64_FORMAT " " INT64_FORMAT, file, VfdCache[file].fileName, - (int64) offset, amount)); + (int64) offset, (int64) amount)); returnCode = FileAccess(file); if (returnCode < 0) @@ -2096,7 +2096,7 @@ FileWrite(File file, const void *buffer, size_t amount, off_t offset, Assert(FileIsValid(file)); - DO_DB(elog(LOG, "FileWrite: %d (%s) " INT64_FORMAT " %d %p", + DO_DB(elog(LOG, "FileWrite: %d (%s) " INT64_FORMAT " %zu %p", file, VfdCache[file].fileName, (int64) offset, amount, buffer));