Don't use INT64_FORMAT inside message strings

Use %lld and cast to long long int instead.
This commit is contained in:
Peter Eisentraut 2021-04-19 22:48:13 +02:00
parent f0ec598b43
commit 3286065651
1 changed files with 4 additions and 4 deletions

View File

@ -526,8 +526,8 @@ process_queued_fetch_requests(libpq_source *src)
}
else
{
pg_log_debug("received chunk for file \"%s\", offset " INT64_FORMAT ", size %d",
filename, chunkoff, chunksize);
pg_log_debug("received chunk for file \"%s\", offset %lld, size %d",
filename, (long long int) chunkoff, chunksize);
if (strcmp(filename, rq->path) != 0)
{
@ -535,8 +535,8 @@ process_queued_fetch_requests(libpq_source *src)
filename, rq->path);
}
if (chunkoff != rq->offset)
pg_fatal("received data at offset " INT64_FORMAT " of file \"%s\", when requested for offset " INT64_FORMAT,
chunkoff, rq->path, (int64) rq->offset);
pg_fatal("received data at offset %lld of file \"%s\", when requested for offset %lld",
(long long int) chunkoff, rq->path, (long long int) rq->offset);
/*
* We should not receive more data than we requested, or