mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Standardize the printf format for st_size
Existing code used various inconsistent ways to printf struct stat's st_size member. The type of that is off_t, which is in most cases a signed 64-bit integer, so use the long long int format for it.
This commit is contained in:
@@ -202,10 +202,10 @@ RestoreArchivedFile(char *path, const char *xlogfname,
|
||||
else
|
||||
elevel = FATAL;
|
||||
ereport(elevel,
|
||||
(errmsg("archive file \"%s\" has wrong size: %lu instead of %lu",
|
||||
(errmsg("archive file \"%s\" has wrong size: %lld instead of %lld",
|
||||
xlogfname,
|
||||
(unsigned long) stat_buf.st_size,
|
||||
(unsigned long) expectedSize)));
|
||||
(long long int) stat_buf.st_size,
|
||||
(long long int) expectedSize)));
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user