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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix unportable printf format introduced in commit 9290ad198.
Date: 2019-11-25 15:48:41
Message-ID: E1iZGbR-00051C-PQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2019-11-25 18:07:55 pgsql: Refactor WAL file-reading code into WALRead()
Previous Message Amit Kapila 2019-11-25 02:43:03 pgsql: Make the order of the header file includes consistent.