Skip to content

Commit 58fbfde

Browse files
committed
Fix incorrect format placeholders
1 parent 0e164eb commit 58fbfde

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7320,7 +7320,7 @@ buffer_readv_report(PgAioResult result, const PgAioTargetData *td,
73207320
affected_count > 1 ?
73217321
errdetail("Block %u held first zeroed page.",
73227322
first + first_off) : 0,
7323-
errhint("See server log for details about the other %u invalid block(s).",
7323+
errhint("See server log for details about the other %d invalid block(s).",
73247324
affected_count + checkfail_count - 1));
73257325
return;
73267326
}

src/backend/storage/buffer/localbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ InvalidateLocalBuffer(BufferDesc *bufHdr, bool check_unreferenced)
629629
*/
630630
if (check_unreferenced &&
631631
(LocalRefCount[bufid] != 0 || BUF_STATE_GET_REFCOUNT(buf_state) != 0))
632-
elog(ERROR, "block %u of %s is still referenced (local %u)",
632+
elog(ERROR, "block %u of %s is still referenced (local %d)",
633633
bufHdr->tag.blockNum,
634634
relpathbackend(BufTagGetRelFileLocator(&bufHdr->tag),
635635
MyProcNumber,

src/backend/utils/adt/pgstatfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ pg_stat_io_build_tuples(ReturnSetInfo *rsinfo,
15101510
bktype_stats->bytes[io_obj][io_context][io_op];
15111511

15121512
/* Convert to numeric */
1513-
snprintf(buf, sizeof buf, UINT64_FORMAT, byte);
1513+
snprintf(buf, sizeof buf, INT64_FORMAT, byte);
15141514
values[byte_idx] = DirectFunctionCall3(numeric_in,
15151515
CStringGetDatum(buf),
15161516
ObjectIdGetDatum(0),

0 commit comments

Comments
 (0)