@@ -124,7 +124,7 @@ static void record_manifest_details_for_wal_range(JsonManifestParseContext *cont
124
124
XLogRecPtr start_lsn ,
125
125
XLogRecPtr end_lsn );
126
126
static void report_manifest_error (JsonManifestParseContext * context ,
127
- char * fmt ,...)
127
+ const char * fmt ,...)
128
128
pg_attribute_printf (2 , 3 ) pg_attribute_noreturn ();
129
129
130
130
static void verify_backup_directory (verifier_context * context ,
@@ -358,7 +358,7 @@ main(int argc, char **argv)
358
358
* work quietly.
359
359
*/
360
360
if (!context .saw_any_error && !quiet )
361
- printf ("backup successfully verified\n" );
361
+ printf (_ ( "backup successfully verified\n" ) );
362
362
363
363
return context .saw_any_error ? 1 : 0 ;
364
364
}
@@ -443,12 +443,12 @@ parse_manifest_file(char *manifest_path, manifest_files_hash **ht_p,
443
443
* expects this function not to return.
444
444
*/
445
445
static void
446
- report_manifest_error (JsonManifestParseContext * context , char * fmt ,...)
446
+ report_manifest_error (JsonManifestParseContext * context , const char * fmt ,...)
447
447
{
448
448
va_list ap ;
449
449
450
450
va_start (ap , fmt );
451
- pg_log_generic_v (PG_LOG_FATAL , fmt , ap );
451
+ pg_log_generic_v (PG_LOG_FATAL , gettext ( fmt ) , ap );
452
452
va_end (ap );
453
453
454
454
exit (1 );
@@ -821,7 +821,7 @@ report_backup_error(verifier_context *context, const char *pg_restrict fmt,...)
821
821
va_list ap ;
822
822
823
823
va_start (ap , fmt );
824
- pg_log_generic_v (PG_LOG_ERROR , fmt , ap );
824
+ pg_log_generic_v (PG_LOG_ERROR , gettext ( fmt ) , ap );
825
825
va_end (ap );
826
826
827
827
context -> saw_any_error = true;
@@ -838,7 +838,7 @@ report_fatal_error(const char *pg_restrict fmt,...)
838
838
va_list ap ;
839
839
840
840
va_start (ap , fmt );
841
- pg_log_generic_v (PG_LOG_FATAL , fmt , ap );
841
+ pg_log_generic_v (PG_LOG_FATAL , gettext ( fmt ) , ap );
842
842
va_end (ap );
843
843
844
844
exit (1 );
0 commit comments