diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-11-25 10:48:36 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-11-25 10:48:36 -0500 |
commit | 5883f5fe27d7b52c812dd0f8cbda67373a14c451 (patch) | |
tree | 2a01c929aa45cf86d530780074db19e3faaa2d6c /src | |
parent | e0487223ecac9cbb7f673e4ff6d2e4086e591abf (diff) | |
download | postgresql-5883f5fe27d7b52c812dd0f8cbda67373a14c451.tar.gz postgresql-5883f5fe27d7b52c812dd0f8cbda67373a14c451.zip |
Fix unportable printf format introduced in commit 9290ad198.
"%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 6a1cd8b92, and use "%lld" with an explicit cast
to long long. Per buildfarm.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/walsender.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index fa75872877e..cbc928501af 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -3644,8 +3644,11 @@ UpdateSpillStats(LogicalDecodingContext *ctx) MyWalSnd->spillCount = rb->spillCount; MyWalSnd->spillBytes = rb->spillBytes; - elog(DEBUG2, "UpdateSpillStats: updating stats %p %ld %ld %ld", - rb, rb->spillTxns, rb->spillCount, rb->spillBytes); + elog(DEBUG2, "UpdateSpillStats: updating stats %p %lld %lld %lld", + rb, + (long long) rb->spillTxns, + (long long) rb->spillCount, + (long long) rb->spillBytes); SpinLockRelease(&MyWalSnd->mutex); } |