Skip to content

Commit 1d1361b

Browse files
committed
Replace printf format %i by %d
see also ce8d7bb
1 parent 6ca365b commit 1d1361b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ BaseBackup(void)
929929
}
930930
if (PQntuples(res) != 1 || PQnfields(res) != 3)
931931
{
932-
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
932+
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
933933
progname, PQntuples(res), PQnfields(res));
934934
disconnect_and_exit(1);
935935
}
@@ -1111,7 +1111,7 @@ BaseBackup(void)
11111111
}
11121112
if (r != bgchild)
11131113
{
1114-
fprintf(stderr, _("%s: child %i died, expected %i\n"),
1114+
fprintf(stderr, _("%s: child %d died, expected %d\n"),
11151115
progname, r, (int) bgchild);
11161116
disconnect_and_exit(1);
11171117
}
@@ -1123,7 +1123,7 @@ BaseBackup(void)
11231123
}
11241124
if (WEXITSTATUS(status) != 0)
11251125
{
1126-
fprintf(stderr, _("%s: child process exited with error %i\n"),
1126+
fprintf(stderr, _("%s: child process exited with error %d\n"),
11271127
progname, WEXITSTATUS(status));
11281128
disconnect_and_exit(1);
11291129
}

src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ StreamLog(void)
237237
}
238238
if (PQntuples(res) != 1 || PQnfields(res) != 3)
239239
{
240-
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
240+
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
241241
progname, PQntuples(res), PQnfields(res));
242242
disconnect_and_exit(1);
243243
}

src/bin/pg_basebackup/receivelog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
237237
}
238238
if (PQnfields(res) != 3 || PQntuples(res) != 1)
239239
{
240-
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
240+
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
241241
progname, PQntuples(res), PQnfields(res));
242242
PQclear(res);
243243
return false;
@@ -391,7 +391,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
391391
*/
392392
if (r != STREAMING_KEEPALIVE_SIZE)
393393
{
394-
fprintf(stderr, _("%s: keepalive message is incorrect size: %i\n"),
394+
fprintf(stderr, _("%s: keepalive message is incorrect size: %d\n"),
395395
progname, r);
396396
return false;
397397
}
@@ -405,7 +405,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
405405
}
406406
if (r < STREAMING_HEADER_SIZE + 1)
407407
{
408-
fprintf(stderr, _("%s: streaming header too small: %i\n"),
408+
fprintf(stderr, _("%s: streaming header too small: %d\n"),
409409
progname, r);
410410
return false;
411411
}

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