]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix incorrect format placeholders
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Jun 2025 19:38:04 +0000 (21:38 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Jun 2025 19:38:04 +0000 (21:38 +0200)
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/backend/utils/adt/pgstatfuncs.c

index f93131a645ea8bc61215ca48cba77309fcea3278..667aa0c0c78d4d101163a0b4ca4aaf84a3106ab6 100644 (file)
@@ -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;
        }
index 63101d56a074b3637d4eca1bcc33ad668fe46970..ba26627f7b00d5412108bd6bf12f83db1a862857 100644 (file)
@@ -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,
index e980109f24522f53ee487288aad9111806ab05c4..1c12ddbae493c53dfe0f9520e2d9b35716f534e6 100644 (file)
@@ -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),