Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6612185

Browse filesBrowse files
committed
Fix incorrect format placeholders
1 parent a189ed4 commit 6612185
Copy full SHA for 6612185

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎src/bin/pg_combinebackup/pg_combinebackup.c

Copy file name to clipboardExpand all lines: src/bin/pg_combinebackup/pg_combinebackup.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ slurp_file(int fd, char *filename, StringInfo buf, int maxlen)
12771277
if (rb < 0)
12781278
pg_fatal("could not read file \"%s\": %m", filename);
12791279
else
1280-
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
1281-
filename, (int) rb, (int) st.st_size);
1280+
pg_fatal("could not read file \"%s\": read only %zd of %lld bytes",
1281+
filename, rb, (long long int) st.st_size);
12821282
}
12831283

12841284
/* Adjust buffer length for new data and restore trailing-\0 invariant */

‎src/bin/pg_combinebackup/reconstruct.c

Copy file name to clipboardExpand all lines: src/bin/pg_combinebackup/reconstruct.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ read_bytes(rfile *rf, void *buffer, unsigned length)
511511
if (rb < 0)
512512
pg_fatal("could not read file \"%s\": %m", rf->filename);
513513
else
514-
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
514+
pg_fatal("could not read file \"%s\": read only %d of %u bytes",
515515
rf->filename, rb, length);
516516
}
517517
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.