mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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:
@ -71,9 +71,9 @@ RestoreArchivedFile(const char *path, const char *xlogfname,
|
||||
{
|
||||
if (expectedSize > 0 && stat_buf.st_size != expectedSize)
|
||||
{
|
||||
pg_log_fatal("unexpected file size for \"%s\": %lu instead of %lu",
|
||||
xlogfname, (unsigned long) stat_buf.st_size,
|
||||
(unsigned long) expectedSize);
|
||||
pg_log_fatal("unexpected file size for \"%s\": %lld instead of %lld",
|
||||
xlogfname, (long long int) stat_buf.st_size,
|
||||
(long long int) expectedSize);
|
||||
exit(1);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user