mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix incorrect format placeholders
This commit is contained in:
@ -1277,8 +1277,8 @@ slurp_file(int fd, char *filename, StringInfo buf, int maxlen)
|
|||||||
if (rb < 0)
|
if (rb < 0)
|
||||||
pg_fatal("could not read file \"%s\": %m", filename);
|
pg_fatal("could not read file \"%s\": %m", filename);
|
||||||
else
|
else
|
||||||
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
|
pg_fatal("could not read file \"%s\": read only %zd of %lld bytes",
|
||||||
filename, (int) rb, (int) st.st_size);
|
filename, rb, (long long int) st.st_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust buffer length for new data and restore trailing-\0 invariant */
|
/* Adjust buffer length for new data and restore trailing-\0 invariant */
|
||||||
|
@ -511,7 +511,7 @@ read_bytes(rfile *rf, void *buffer, unsigned length)
|
|||||||
if (rb < 0)
|
if (rb < 0)
|
||||||
pg_fatal("could not read file \"%s\": %m", rf->filename);
|
pg_fatal("could not read file \"%s\": %m", rf->filename);
|
||||||
else
|
else
|
||||||
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
|
pg_fatal("could not read file \"%s\": read only %d of %u bytes",
|
||||||
rf->filename, rb, length);
|
rf->filename, rb, length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user