@@ -232,8 +232,8 @@ read_page_from_file(pgFile *file, BlockNumber blknum,
232
232
return 0 ;
233
233
}
234
234
else
235
- elog (WARNING , "File: %s, block %u, expected block size %d ,"
236
- "but read %lu , try again" ,
235
+ elog (WARNING , "File: %s, block %u, expected block size %u ,"
236
+ "but read %zu , try again" ,
237
237
file -> path , blknum , BLCKSZ , read_len );
238
238
}
239
239
@@ -382,7 +382,7 @@ prepare_page(backup_files_arg *arguments,
382
382
else if (page_size != BLCKSZ )
383
383
{
384
384
free (ptrack_page );
385
- elog (ERROR , "File: %s, block %u, expected block size %d, but read %lu " ,
385
+ elog (ERROR , "File: %s, block %u, expected block size %d, but read %zu " ,
386
386
file -> path , absolute_blknum , BLCKSZ , page_size );
387
387
}
388
388
else
@@ -574,7 +574,7 @@ backup_data_file(backup_files_arg* arguments,
574
574
if (file -> size % BLCKSZ != 0 )
575
575
{
576
576
fclose (in );
577
- elog (ERROR , "File: %s, invalid file size %lu " , file -> path , file -> size );
577
+ elog (ERROR , "File: %s, invalid file size %zu " , file -> path , file -> size );
578
578
}
579
579
580
580
/*
@@ -789,7 +789,7 @@ restore_data_file(const char *to_path, pgFile *file, bool allow_truncate,
789
789
read_len = fread (compressed_page .data , 1 ,
790
790
MAXALIGN (header .compressed_size ), in );
791
791
if (read_len != MAXALIGN (header .compressed_size ))
792
- elog (ERROR , "cannot read block %u of \"%s\" read %lu of %d" ,
792
+ elog (ERROR , "cannot read block %u of \"%s\" read %zu of %d" ,
793
793
blknum , file -> path , read_len , header .compressed_size );
794
794
795
795
/*
@@ -1620,7 +1620,7 @@ check_file_pages(pgFile *file, XLogRecPtr stop_lsn, uint32 checksum_version,
1620
1620
read_len = fread (compressed_page .data , 1 ,
1621
1621
MAXALIGN (header .compressed_size ), in );
1622
1622
if (read_len != MAXALIGN (header .compressed_size ))
1623
- elog (ERROR , "cannot read block %u of \"%s\" read %lu of %d" ,
1623
+ elog (ERROR , "cannot read block %u of \"%s\" read %zu of %d" ,
1624
1624
blknum , file -> path , read_len , header .compressed_size );
1625
1625
1626
1626
COMP_FILE_CRC32 (use_crc32c , crc , compressed_page .data , read_len );
0 commit comments