]> granicus.if.org Git - postgresql/commitdiff
Use INT64_FORMAT instead of %ld for int64.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2016 18:53:06 +0000 (14:53 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2016 18:54:09 +0000 (14:54 -0400)
Commit 0011c0091e886b874e485a46ff2c94222ffbf550 introduced this
mistake.

Patch by me.  Reported by Andres Freund, who also reviewed the
patch.

src/backend/utils/sort/tuplesort.c

index dbedc270537f536de1b12ef0c41e239217e62e33..d033c95e7890f25f011325571b27aa73b71bc3bf 100644 (file)
@@ -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,