Skip to content

Commit 3286065

Browse files
committed
Don't use INT64_FORMAT inside message strings
Use %lld and cast to long long int instead.
1 parent f0ec598 commit 3286065

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/pg_rewind/libpq_source.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -526,17 +526,17 @@ process_queued_fetch_requests(libpq_source *src)
526526
}
527527
else
528528
{
529-
pg_log_debug("received chunk for file \"%s\", offset " INT64_FORMAT ", size %d",
530-
filename, chunkoff, chunksize);
529+
pg_log_debug("received chunk for file \"%s\", offset %lld, size %d",
530+
filename, (long long int) chunkoff, chunksize);
531531

532532
if (strcmp(filename, rq->path) != 0)
533533
{
534534
pg_fatal("received data for file \"%s\", when requested for \"%s\"",
535535
filename, rq->path);
536536
}
537537
if (chunkoff != rq->offset)
538-
pg_fatal("received data at offset " INT64_FORMAT " of file \"%s\", when requested for offset " INT64_FORMAT,
539-
chunkoff, rq->path, (int64) rq->offset);
538+
pg_fatal("received data at offset %lld of file \"%s\", when requested for offset %lld",
539+
(long long int) chunkoff, rq->path, (long long int) rq->offset);
540540

541541
/*
542542
* We should not receive more data than we requested, or

0 commit comments

Comments
 (0)