@@ -2160,7 +2160,7 @@ get_data_file_headers(HeaderMap *hdr_map, pgFile *file, uint32 backup_version, b
21602160
21612161 if (fseek (in , file -> hdr_off , SEEK_SET ))
21622162 {
2163- elog (strict ? ERROR : WARNING , "Cannot seek to position %lu in page header map \"%s\": %s" ,
2163+ elog (strict ? ERROR : WARNING , "Cannot seek to position %llu in page header map \"%s\": %s" ,
21642164 file -> hdr_off , hdr_map -> path , strerror (errno ));
21652165 goto cleanup ;
21662166 }
@@ -2177,7 +2177,7 @@ get_data_file_headers(HeaderMap *hdr_map, pgFile *file, uint32 backup_version, b
21772177
21782178 if (fread (zheaders , 1 , file -> hdr_size , in ) != file -> hdr_size )
21792179 {
2180- elog (strict ? ERROR : WARNING , "Cannot read header file at offset: %li len: %i \"%s\": %s" ,
2180+ elog (strict ? ERROR : WARNING , "Cannot read header file at offset: %llu len: %i \"%s\": %s" ,
21812181 file -> hdr_off , file -> hdr_size , hdr_map -> path , strerror (errno ));
21822182 goto cleanup ;
21832183 }
@@ -2208,7 +2208,7 @@ get_data_file_headers(HeaderMap *hdr_map, pgFile *file, uint32 backup_version, b
22082208 if (hdr_crc != file -> hdr_crc )
22092209 {
22102210 elog (strict ? ERROR : WARNING , "Header map for file \"%s\" crc mismatch \"%s\" "
2211- "offset: %lu , len: %lu, current: %u, expected: %u" ,
2211+ "offset: %llu , len: %lu, current: %u, expected: %u" ,
22122212 file -> rel_path , hdr_map -> path , file -> hdr_off , read_len , hdr_crc , file -> hdr_crc );
22132213 goto cleanup ;
22142214 }
@@ -2268,7 +2268,7 @@ write_page_headers(BackupPageHeader2 *headers, pgFile *file, HeaderMap *hdr_map,
22682268 {
22692269 elog (LOG , "Creating page header map \"%s\"" , map_path );
22702270
2271- hdr_map -> fp = fopen (map_path , 'a' );
2271+ hdr_map -> fp = fopen (map_path , "a" );
22722272 if (hdr_map -> fp == NULL )
22732273 elog (ERROR , "Cannot open header file \"%s\": %s" ,
22742274 map_path , strerror (errno ));
@@ -2297,7 +2297,7 @@ write_page_headers(BackupPageHeader2 *headers, pgFile *file, HeaderMap *hdr_map,
22972297 file -> rel_path , z_len );
22982298 }
22992299
2300- elog (VERBOSE , "Writing headers for file \"%s\" offset: %li , len: %i, crc: %u" ,
2300+ elog (VERBOSE , "Writing headers for file \"%s\" offset: %llu , len: %i, crc: %u" ,
23012301 file -> rel_path , file -> hdr_off , z_len , file -> hdr_crc );
23022302
23032303 if (fwrite (zheaders , 1 , z_len , hdr_map -> fp ) != z_len )
0 commit comments