Use correct format placeholder for timeline IDs
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Apr 2021 06:26:18 +0000 (08:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 21 Apr 2021 06:26:18 +0000 (08:26 +0200)
Should be %u rather than %d.

src/bin/pg_rewind/pg_rewind.c

index 38e5d237551870a43b5d3c76f8c1555490bedbc4..5157f59cf79b38c118924f02762dc52b972793a8 100644 (file)
@@ -857,7 +857,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries)
            TimeLineHistoryEntry *entry;
 
            entry = &history[i];
-           pg_log_debug("%d: %X/%X - %X/%X", entry->tli,
+           pg_log_debug("%u: %X/%X - %X/%X", entry->tli,
                         LSN_FORMAT_ARGS(entry->begin),
                         LSN_FORMAT_ARGS(entry->end));
        }