Skip to content

Commit 8371dbf

Browse files
committed
minor fix to error messages about unexpected page size
1 parent a67e2c0 commit 8371dbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/data.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ read_page_from_file(pgFile *file, BlockNumber blknum,
154154
return 0;
155155
}
156156
else
157-
elog(WARNING, "File: %s, block %u, expected block size %lu,"
158-
"but read %d, try again",
159-
file->path, blknum, read_len, BLCKSZ);
157+
elog(WARNING, "File: %s, block %u, expected block size %d,"
158+
"but read %lu, try again",
159+
file->path, blknum, BLCKSZ, read_len);
160160
}
161161

162162
/*
@@ -304,8 +304,8 @@ backup_data_page(backup_files_args *arguments,
304304
}
305305
else if (page_size != BLCKSZ)
306306
{
307-
elog(ERROR, "File: %s, block %u, expected block size %lu, but read %d",
308-
file->path, absolute_blknum, page_size, BLCKSZ);
307+
elog(ERROR, "File: %s, block %u, expected block size %d, but read %lu",
308+
file->path, absolute_blknum, BLCKSZ, page_size);
309309
}
310310
else
311311
{

0 commit comments

Comments
 (0)