From ae03a7c7391dfc59f14226b7cfd8ef9f3390e56f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 8 Aug 2021 22:05:42 +0200 Subject: 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. --- src/backend/access/transam/xlogutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/access/transam/xlogutils.c') diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index b1702bc6bef..88a1bfd9394 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -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))); } } -- cgit v1.2.3