Fix format code in fd.c debugging infrastructure
authorAndres Freund <andres@anarazel.de>
Thu, 30 Mar 2023 16:50:18 +0000 (09:50 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 30 Mar 2023 17:26:10 +0000 (10:26 -0700)
These were not sufficiently adjusted in 2d4f1ba6cfc.

src/backend/storage/file/fd.c

index 9fd8444ed4d943f7d54ae144e7e2dfbe2b6b188c..2ac365e97ccb10827d5b5467e061fb96e57ca377 100644 (file)
@@ -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));