Commit 10d62d10 authored by Magnus Hagander's avatar Magnus Hagander

Properly use INT64_FORMAT in output

Per buildfarm animal prairiedog, suggestion solution from Tom.
parent 341e1661
......@@ -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")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment