Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1d1361b6
Commit
1d1361b6
authored
Mar 30, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace printf format %i by %d
see also
ce8d7bb6
parent
6ca365bf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_basebackup.c
+3
-3
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/pg_receivexlog.c
+1
-1
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/receivelog.c
+3
-3
No files found.
src/bin/pg_basebackup/pg_basebackup.c
View file @
1d1361b6
...
...
@@ -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
);
}
...
...
src/bin/pg_basebackup/pg_receivexlog.c
View file @
1d1361b6
...
...
@@ -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
);
}
...
...
src/bin/pg_basebackup/receivelog.c
View file @
1d1361b6
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment