aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-03-18 14:53:06 -0400
committerRobert Haas <rhaas@postgresql.org>2016-03-18 14:54:09 -0400
commit08a6d36dcbe4ebdcdf9d554e5b571748fe23001b (patch)
treebae6cd22d36d1329950f2d141ce39a6337acac57 /src
parentc4901a1e03a7730e4471fd1143f1caf79695493d (diff)
downloadpostgresql-08a6d36dcbe4ebdcdf9d554e5b571748fe23001b.tar.gz
postgresql-08a6d36dcbe4ebdcdf9d554e5b571748fe23001b.zip
Use INT64_FORMAT instead of %ld for int64.
Commit 0011c0091e886b874e485a46ff2c94222ffbf550 introduced this mistake. Patch by me. Reported by Andres Freund, who also reviewed the patch.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/sort/tuplesort.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c
index dbedc270537..d033c95e789 100644
--- a/src/backend/utils/sort/tuplesort.c
+++ b/src/backend/utils/sort/tuplesort.c
@@ -2692,8 +2692,9 @@ beginmerge(Tuplesortstate *state, bool finalMergeBatch)
state->mergetuples[srcTape] + 1023) / 1024;
usedSlots = slotsPerTape - state->mergeavailslots[srcTape];
- elog(LOG, "tape %d initially used %ld KB of %ld KB batch "
- "(%2.3f) and %d out of %d slots (%2.3f)", srcTape,
+ elog(LOG, "tape %d initially used " INT64_FORMAT " KB of "
+ INT64_FORMAT " KB batch (%2.3f) and %d out of %d slots "
+ "(%2.3f)", srcTape,
usedSpaceKB, perTapeKB,
(double) usedSpaceKB / (double) perTapeKB,
usedSlots, slotsPerTape,