Replace printf format %i by %d

see also ce8d7bb644
This commit is contained in:
Peter Eisentraut 2012-03-30 20:40:46 +03:00
parent 6ca365bff2
commit 1d1361b6b7
3 changed files with 7 additions and 7 deletions

View File

@ -929,7 +929,7 @@ BaseBackup(void)
}
if (PQntuples(res) != 1 || PQnfields(res) != 3)
{
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
progname, PQntuples(res), PQnfields(res));
disconnect_and_exit(1);
}
@ -1111,7 +1111,7 @@ BaseBackup(void)
}
if (r != bgchild)
{
fprintf(stderr, _("%s: child %i died, expected %i\n"),
fprintf(stderr, _("%s: child %d died, expected %d\n"),
progname, r, (int) bgchild);
disconnect_and_exit(1);
}
@ -1123,7 +1123,7 @@ BaseBackup(void)
}
if (WEXITSTATUS(status) != 0)
{
fprintf(stderr, _("%s: child process exited with error %i\n"),
fprintf(stderr, _("%s: child process exited with error %d\n"),
progname, WEXITSTATUS(status));
disconnect_and_exit(1);
}

View File

@ -237,7 +237,7 @@ StreamLog(void)
}
if (PQntuples(res) != 1 || PQnfields(res) != 3)
{
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
progname, PQntuples(res), PQnfields(res));
disconnect_and_exit(1);
}

View File

@ -237,7 +237,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
}
if (PQnfields(res) != 3 || PQntuples(res) != 1)
{
fprintf(stderr, _("%s: could not identify system, got %i rows and %i fields\n"),
fprintf(stderr, _("%s: could not identify system, got %d rows and %d fields\n"),
progname, PQntuples(res), PQnfields(res));
PQclear(res);
return false;
@ -391,7 +391,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
*/
if (r != STREAMING_KEEPALIVE_SIZE)
{
fprintf(stderr, _("%s: keepalive message is incorrect size: %i\n"),
fprintf(stderr, _("%s: keepalive message is incorrect size: %d\n"),
progname, r);
return false;
}
@ -405,7 +405,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
}
if (r < STREAMING_HEADER_SIZE + 1)
{
fprintf(stderr, _("%s: streaming header too small: %i\n"),
fprintf(stderr, _("%s: streaming header too small: %d\n"),
progname, r);
return false;
}