Skip to content

Commit f59b58e

Browse files
committed
Use correct format placeholder for block numbers
Should be %u rather than %d.
1 parent f24b156 commit f59b58e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/backend/access/gist/gistbuild.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ gistBufferingFindCorrectParent(GISTBuildState *buildstate,
12121212
* number.
12131213
*/
12141214
if (*parentblkno == InvalidBlockNumber)
1215-
elog(ERROR, "no parent buffer provided of child %d", childblkno);
1215+
elog(ERROR, "no parent buffer provided of child %u", childblkno);
12161216
parent = *parentblkno;
12171217
}
12181218

@@ -1545,7 +1545,7 @@ gistGetParent(GISTBuildState *buildstate, BlockNumber child)
15451545
HASH_FIND,
15461546
&found);
15471547
if (!found)
1548-
elog(ERROR, "could not find parent of block %d in lookup table", child);
1548+
elog(ERROR, "could not find parent of block %u in lookup table", child);
15491549

15501550
return entry->parentblkno;
15511551
}

src/backend/access/heap/vacuumlazy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ static void
22602260
lazy_vacuum_heap_rel(LVRelState *vacrel)
22612261
{
22622262
int tupindex;
2263-
int vacuumed_pages;
2263+
BlockNumber vacuumed_pages;
22642264
PGRUsage ru0;
22652265
Buffer vmbuffer = InvalidBuffer;
22662266
LVSavedErrInfo saved_err_info;

src/backend/replication/basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ sendFile(const char *readfilename, const char *tarfilename,
16761676
{
16771677
ereport(WARNING,
16781678
(errmsg("could not verify checksum in file \"%s\", block "
1679-
"%d: read buffer size %d and page size %d "
1679+
"%u: read buffer size %d and page size %d "
16801680
"differ",
16811681
readfilename, blkno, (int) cnt, BLCKSZ)));
16821682
verify_checksum = false;
@@ -1749,7 +1749,7 @@ sendFile(const char *readfilename, const char *tarfilename,
17491749
if (checksum_failures <= 5)
17501750
ereport(WARNING,
17511751
(errmsg("checksum verification failed in "
1752-
"file \"%s\", block %d: calculated "
1752+
"file \"%s\", block %u: calculated "
17531753
"%X but expected %X",
17541754
readfilename, blkno, checksum,
17551755
phdr->pd_checksum)));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy