提交 08a6d36d 编写于 作者: R Robert Haas

Use INT64_FORMAT instead of %ld for int64.

Commit 0011c009 introduced this
mistake.

Patch by me.  Reported by Andres Freund, who also reviewed the
patch.
上级 c4901a1e
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册