@@ -124,7 +124,7 @@ static void record_manifest_details_for_wal_range(JsonManifestParseContext *cont
124124 XLogRecPtr start_lsn ,
125125 XLogRecPtr end_lsn );
126126static void report_manifest_error (JsonManifestParseContext * context ,
127- char * fmt ,...)
127+ const char * fmt ,...)
128128 pg_attribute_printf (2 , 3 ) pg_attribute_noreturn ();
129129
130130static void verify_backup_directory (verifier_context * context ,
@@ -358,7 +358,7 @@ main(int argc, char **argv)
358358 * work quietly.
359359 */
360360 if (!context .saw_any_error && !quiet )
361- printf ("backup successfully verified\n" );
361+ printf (_ ( "backup successfully verified\n" ) );
362362
363363 return context .saw_any_error ? 1 : 0 ;
364364}
@@ -443,12 +443,12 @@ parse_manifest_file(char *manifest_path, manifest_files_hash **ht_p,
443443 * expects this function not to return.
444444 */
445445static void
446- report_manifest_error (JsonManifestParseContext * context , char * fmt ,...)
446+ report_manifest_error (JsonManifestParseContext * context , const char * fmt ,...)
447447{
448448 va_list ap ;
449449
450450 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 );
452452 va_end (ap );
453453
454454 exit (1 );
@@ -821,7 +821,7 @@ report_backup_error(verifier_context *context, const char *pg_restrict fmt,...)
821821 va_list ap ;
822822
823823 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 );
825825 va_end (ap );
826826
827827 context -> saw_any_error = true;
@@ -838,7 +838,7 @@ report_fatal_error(const char *pg_restrict fmt,...)
838838 va_list ap ;
839839
840840 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 );
842842 va_end (ap );
843843
844844 exit (1 );
0 commit comments