Fix incorrect format placeholders

pull/232/head
Peter Eisentraut 3 weeks ago
parent 0e164eb9f4
commit 58fbfde152
  1. 2
      src/backend/storage/buffer/bufmgr.c
  2. 2
      src/backend/storage/buffer/localbuf.c
  3. 2
      src/backend/utils/adt/pgstatfuncs.c

@ -7320,7 +7320,7 @@ buffer_readv_report(PgAioResult result, const PgAioTargetData *td,
affected_count > 1 ?
errdetail("Block %u held first zeroed page.",
first + first_off) : 0,
errhint("See server log for details about the other %u invalid block(s).",
errhint("See server log for details about the other %d invalid block(s).",
affected_count + checkfail_count - 1));
return;
}

@ -629,7 +629,7 @@ InvalidateLocalBuffer(BufferDesc *bufHdr, bool check_unreferenced)
*/
if (check_unreferenced &&
(LocalRefCount[bufid] != 0 || BUF_STATE_GET_REFCOUNT(buf_state) != 0))
elog(ERROR, "block %u of %s is still referenced (local %u)",
elog(ERROR, "block %u of %s is still referenced (local %d)",
bufHdr->tag.blockNum,
relpathbackend(BufTagGetRelFileLocator(&bufHdr->tag),
MyProcNumber,

@ -1510,7 +1510,7 @@ pg_stat_io_build_tuples(ReturnSetInfo *rsinfo,
bktype_stats->bytes[io_obj][io_context][io_op];
/* Convert to numeric */
snprintf(buf, sizeof buf, UINT64_FORMAT, byte);
snprintf(buf, sizeof buf, INT64_FORMAT, byte);
values[byte_idx] = DirectFunctionCall3(numeric_in,
CStringGetDatum(buf),
ObjectIdGetDatum(0),

Loading…
Cancel
Save