Use correct format placeholder for timeline IDs

Should be %u rather than %d.
This commit is contained in:
Peter Eisentraut 2024-02-13 06:54:58 +01:00
parent 703c7a3c54
commit e4b88c5fa3
1 changed files with 3 additions and 3 deletions

View File

@ -565,7 +565,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
if (unsummarized_tli == 0)
ereport(ERROR,
errcode(ERRCODE_INTERNAL_ERROR),
errmsg_internal("no WAL found on timeline %d", latest_tli));
errmsg_internal("no WAL found on timeline %u", latest_tli));
/*
* Don't try to summarize anything older than the end LSN of the newest
@ -909,7 +909,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
* able to read a complete record.
*/
ereport(DEBUG1,
errmsg_internal("could not read WAL from timeline %d at %X/%X: end of WAL at %X/%X",
errmsg_internal("could not read WAL from timeline %u at %X/%X: end of WAL at %X/%X",
tli,
LSN_FORMAT_ARGS(xlogreader->EndRecPtr),
LSN_FORMAT_ARGS(private_data->read_upto)));
@ -1064,7 +1064,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
/* Tell the user what we did. */
ereport(DEBUG1,
errmsg("summarized WAL on TLI %d from %X/%X to %X/%X",
errmsg("summarized WAL on TLI %u from %X/%X to %X/%X",
tli,
LSN_FORMAT_ARGS(summary_start_lsn),
LSN_FORMAT_ARGS(summary_end_lsn)));