Skip to content

Commit 10d62d1

Browse files
committed
Properly use INT64_FORMAT in output
Per buildfarm animal prairiedog, suggestion solution from Tom.
1 parent 341e166 commit 10d62d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/backend/replication/basebackup.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,14 @@ perform_base_backup(basebackup_options *opt)
597597
if (total_checksum_failures)
598598
{
599599
if (total_checksum_failures > 1)
600+
{
601+
char buf[64];
602+
603+
snprintf(buf, sizeof(buf), INT64_FORMAT, total_checksum_failures);
604+
600605
ereport(WARNING,
601-
(errmsg("%ld total checksum verification failures", total_checksum_failures)));
606+
(errmsg("%s total checksum verification failures", buf)));
607+
}
602608
ereport(ERROR,
603609
(errcode(ERRCODE_DATA_CORRUPTED),
604610
errmsg("checksum verification failure during base backup")));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy