mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -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
@ -597,8 +597,14 @@ perform_base_backup(basebackup_options *opt)
|
|||||||
if (total_checksum_failures)
|
if (total_checksum_failures)
|
||||||
{
|
{
|
||||||
if (total_checksum_failures > 1)
|
if (total_checksum_failures > 1)
|
||||||
|
{
|
||||||
|
char buf[64];
|
||||||
|
|
||||||
|
snprintf(buf, sizeof(buf), INT64_FORMAT, total_checksum_failures);
|
||||||
|
|
||||||
ereport(WARNING,
|
ereport(WARNING,
|
||||||
(errmsg("%ld total checksum verification failures", total_checksum_failures)));
|
(errmsg("%s total checksum verification failures", buf)));
|
||||||
|
}
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||||
errmsg("checksum verification failure during base backup")));
|
errmsg("checksum verification failure during base backup")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user