mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
Remove some unnecessary casts in format arguments
We can use %zd or %zu directly, no need to cast to int. Conversely, some code was casting away from int when it could be using %d directly.
This commit is contained in:
@@ -991,8 +991,8 @@ WALReadRaiseError(WALReadError *errinfo)
|
||||
{
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||
errmsg("could not read from log segment %s, offset %u: read %d of %zu",
|
||||
errmsg("could not read from log segment %s, offset %u: read %d of %d",
|
||||
fname, errinfo->wre_off, errinfo->wre_read,
|
||||
(Size) errinfo->wre_req)));
|
||||
errinfo->wre_req)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user