This should tame the beast, as there are no other places where off_t is
used in the new error messages.
Reported again by longfin, which complained about walsender.c while I
spotted the other two ones while double-checking.
else
ereport(ERROR,
(errmsg("could not read file \"%s\": read %d of %zu",
- path, readBytes, SnapBuildOnDiskConstantSize)));
+ path, readBytes,
+ (Size) SnapBuildOnDiskConstantSize)));
}
if (ondisk.magic != SNAPBUILD_MAGIC)
ereport(PANIC,
(errmsg("could not read file \"%s\": read %d of %zu",
path, readBytes,
- ReplicationSlotOnDiskConstantSize)));
+ (Size) ReplicationSlotOnDiskConstantSize)));
}
/* verify magic */
else if (nread == 0)
ereport(ERROR,
(errmsg("could not read file \"%s\": read %d of %zu",
- path, nread, bytesleft)));
+ path, nread, (Size) bytesleft)));
pq_sendbytes(&buf, rbuf, nread);
bytesleft -= nread;