mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Use PRI?64 instead of "ll?" in format strings (continued).
Continuation of work started in commit 15a79c73
, after initial trial.
Author: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/b936d2fb-590d-49c3-a615-92c3a88c6c19%40eisentraut.org
This commit is contained in:
@ -206,14 +206,12 @@ check_relation_block_range(Relation rel, int64 blkno)
|
||||
if (blkno < 0 || blkno > MaxBlockNumber)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("invalid block number %lld",
|
||||
(long long) blkno)));
|
||||
errmsg("invalid block number %" PRId64, blkno)));
|
||||
|
||||
if ((BlockNumber) (blkno) >= RelationGetNumberOfBlocks(rel))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
errmsg("block number %lld is out of range",
|
||||
(long long) blkno)));
|
||||
errmsg("block number %" PRId64 " is out of range", blkno)));
|
||||
}
|
||||
|
||||
/* -----------------------------------------------
|
||||
|
Reference in New Issue
Block a user