Content-Length: 283305 | pFad | http://github.com/postgrespro/postgres_cluster/commit/863d75439e8733b4bf6195a2c8a09966f04d8fbe

68 Fix translatable string · postgrespro/postgres_cluster@863d754 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/863d75439e8733b4bf6195a2c8a09966f04d8fbe

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy