Skip to content

Commit bd75335

Browse files
committed
1 parent a4b0a4d commit bd75335

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
@@ -271,6 +271,7 @@ receiveFileChunks(const char *sql)
271271
char *filename;
272272
int filenamelen;
273273
int64 chunkoff;
274+
char chunkoff_str[32];
274275
int chunksize;
275276
char *chunk;
276277

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

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

349355
open_target_file(filename, false);
350356

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