mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04:00
Properly use INT64_FORMAT in output
Per buildfarm animal prairiedog, suggestion solution from Tom.
This commit is contained in:
parent
341e166180
commit
10d62d1065
1 changed files with 7 additions and 1 deletions
|
|
@ -597,8 +597,14 @@ perform_base_backup(basebackup_options *opt)
|
|||
if (total_checksum_failures)
|
||||
{
|
||||
if (total_checksum_failures > 1)
|
||||
{
|
||||
char buf[64];
|
||||
|
||||
snprintf(buf, sizeof(buf), INT64_FORMAT, total_checksum_failures);
|
||||
|
||||
ereport(WARNING,
|
||||
(errmsg("%ld total checksum verification failures", total_checksum_failures)));
|
||||
(errmsg("%s total checksum verification failures", buf)));
|
||||
}
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||
errmsg("checksum verification failure during base backup")));
|
||||
|
|
|
|||
Loading…
Reference in a new issue