Skip to content

Commit 5883f5f

Browse files
committed
Fix unportable printf format introduced in commit 9290ad1.
"%ld" is not an acceptable format spec for int64 variables, though it accidentally works on most non-Windows 64-bit platforms. Follow the lead of commit 6a1cd8b, and use "%lld" with an explicit cast to long long. Per buildfarm.
1 parent e048722 commit 5883f5f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/replication/walsender.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3644,8 +3644,11 @@ UpdateSpillStats(LogicalDecodingContext *ctx)
36443644
MyWalSnd->spillCount = rb->spillCount;
36453645
MyWalSnd->spillBytes = rb->spillBytes;
36463646

3647-
elog(DEBUG2, "UpdateSpillStats: updating stats %p %ld %ld %ld",
3648-
rb, rb->spillTxns, rb->spillCount, rb->spillBytes);
3647+
elog(DEBUG2, "UpdateSpillStats: updating stats %p %lld %lld %lld",
3648+
rb,
3649+
(long long) rb->spillTxns,
3650+
(long long) rb->spillCount,
3651+
(long long) rb->spillBytes);
36493652

36503653
SpinLockRelease(&MyWalSnd->mutex);
36513654
}

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