Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 08a6d36

Browse files
committed
Use INT64_FORMAT instead of %ld for int64.
Commit 0011c00 introduced this mistake. Patch by me. Reported by Andres Freund, who also reviewed the patch.
1 parent c4901a1 commit 08a6d36

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/utils/sort/tuplesort.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -2692,8 +2692,9 @@ beginmerge(Tuplesortstate *state, bool finalMergeBatch)
26922692
state->mergetuples[srcTape] + 1023) / 1024;
26932693
usedSlots = slotsPerTape - state->mergeavailslots[srcTape];
26942694

2695-
elog(LOG, "tape %d initially used %ld KB of %ld KB batch "
2696-
"(%2.3f) and %d out of %d slots (%2.3f)", srcTape,
2695+
elog(LOG, "tape %d initially used " INT64_FORMAT " KB of "
2696+
INT64_FORMAT " KB batch (%2.3f) and %d out of %d slots "
2697+
"(%2.3f)", srcTape,
26972698
usedSpaceKB, perTapeKB,
26982699
(double) usedSpaceKB / (double) perTapeKB,
26992700
usedSlots, slotsPerTape,

0 commit comments

Comments
 (0)