pgsql: Fix unportable printf format introduced in commit 9290ad198. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix unportable printf format introduced in commit 9290ad198.
Date
Msg-id E1iZGbR-00051C-PQ@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Fix unportable printf format introduced in commit 9290ad198.  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-committers
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5883f5fe27d7b52c812dd0f8cbda67373a14c451

Modified Files
--------------
src/backend/replication/walsender.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Make the order of the header file includes consistent.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Refactor WAL file-reading code into WALRead()