diff options
Diffstat (limited to 'src/common/controldata_utils.c')
-rw-r--r-- | src/common/controldata_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c index e83d60d4383..60197b24406 100644 --- a/src/common/controldata_utils.c +++ b/src/common/controldata_utils.c @@ -83,12 +83,12 @@ get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p) else #ifndef FRONTEND ereport(ERROR, - (errmsg("could not read file \"%s\": read %d of %d", - ControlFilePath, r, (int) sizeof(ControlFileData)))); + (errmsg("could not read file \"%s\": read %d of %zu", + ControlFilePath, r, sizeof(ControlFileData)))); #else { - fprintf(stderr, _("%s: could not read file \"%s\": read %d of %d\n"), - progname, ControlFilePath, r, (int) sizeof(ControlFileData)); + fprintf(stderr, _("%s: could not read file \"%s\": read %d of %zu\n"), + progname, ControlFilePath, r, sizeof(ControlFileData)); exit(EXIT_FAILURE); } #endif |