pgsql: Fix unportable printf format introduced in commit 9290ad198.

Started by Tom Laneover 6 years ago2 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)

#2Amit Kapila
amit.kapila16@gmail.com
In reply to: Tom Lane (#1)
Re: pgsql: Fix unportable printf format introduced in commit 9290ad198.

On Mon, Nov 25, 2019 at 9:18 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Fix unportable printf format introduced in commit 9290ad198.

Thanks for fixing this.

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com