Content-Length: 268634 | pFad | http://github.com/postgrespro/postgres_cluster/commit/10d62d1065290469ae79518f8166550b2760dc26

25 Properly use INT64_FORMAT in output · postgrespro/postgres_cluster@10d62d1 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/10d62d1065290469ae79518f8166550b2760dc26

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy