Skip to content

Commit 863d754

Browse files
committed
1 parent 4faa1dc commit 863d754

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/bin/pg_rewind/libpq_fetch.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ receiveFileChunks(const char *sql)
270270
char *filename;
271271
int filenamelen;
272272
int64 chunkoff;
273+
char chunkoff_str[32];
273274
int chunksize;
274275
char *chunk;
275276

@@ -342,8 +343,13 @@ receiveFileChunks(const char *sql)
342343
continue;
343344
}
344345

345-
pg_log(PG_DEBUG, "received chunk for file \"%s\", offset " INT64_FORMAT ", size %d\n",
346-
filename, chunkoff, chunksize);
346+
/*
347+
* Separate step to keep platform-dependent format code out of
348+
* translatable strings.
349+
*/
350+
snprintf(chunkoff_str, sizeof(chunkoff_str), INT64_FORMAT, chunkoff);
351+
pg_log(PG_DEBUG, "received chunk for file \"%s\", offset %s, size %d\n",
352+
filename, chunkoff_str, chunksize);
347353

348354
open_target_file(filename, false);
349355

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy