summaryrefslogtreecommitdiff
path: root/src/bin/pg_waldump/pg_waldump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_waldump/pg_waldump.c')
-rw-r--r--src/bin/pg_waldump/pg_waldump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c
index 74664bef6a4..1e3894b9c45 100644
--- a/src/bin/pg_waldump/pg_waldump.c
+++ b/src/bin/pg_waldump/pg_waldump.c
@@ -211,8 +211,8 @@ search_directory(const char *directory, const char *fname)
fatal_error("could not read file \"%s\": %m",
fname);
else
- fatal_error("could not read file \"%s\": read %d of %zu",
- fname, r, (Size) XLOG_BLCKSZ);
+ fatal_error("could not read file \"%s\": read %d of %d",
+ fname, r, XLOG_BLCKSZ);
}
close(fd);
return true;
@@ -369,9 +369,9 @@ WALDumpReadPage(XLogReaderState *state, XLogRecPtr targetPagePtr, int reqLen,
fname, errinfo.wre_off);
}
else
- fatal_error("could not read from file %s, offset %u: read %d of %zu",
+ fatal_error("could not read from file %s, offset %u: read %d of %d",
fname, errinfo.wre_off, errinfo.wre_read,
- (Size) errinfo.wre_req);
+ errinfo.wre_req);
}
return count;