Commit 24c7000f authored by Peter Eisentraut's avatar Peter Eisentraut

Remove redundant newlines from error messages

These are no longer needed/allowed with the new logging API.
parent b4771d7c
...@@ -2236,7 +2236,7 @@ main(int argc, char **argv) ...@@ -2236,7 +2236,7 @@ main(int argc, char **argv)
format = 't'; format = 't';
else else
{ {
pg_log_error("invalid output format \"%s\", must be \"plain\" or \"tar\"\n", pg_log_error("invalid output format \"%s\", must be \"plain\" or \"tar\"",
optarg); optarg);
exit(1); exit(1);
} }
...@@ -2308,7 +2308,7 @@ main(int argc, char **argv) ...@@ -2308,7 +2308,7 @@ main(int argc, char **argv)
compresslevel = atoi(optarg); compresslevel = atoi(optarg);
if (compresslevel < 0 || compresslevel > 9) if (compresslevel < 0 || compresslevel > 9)
{ {
pg_log_error("invalid compression level \"%s\"\n", optarg); pg_log_error("invalid compression level \"%s\"", optarg);
exit(1); exit(1);
} }
break; break;
......
...@@ -568,7 +568,7 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh) ...@@ -568,7 +568,7 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh)
} }
} }
else else
fatal("internal error -- neither th nor fh specified in tarReadRaw()\n"); fatal("internal error -- neither th nor fh specified in tarReadRaw()");
} }
ctx->tarFHpos += res + used; ctx->tarFHpos += res + used;
......
...@@ -13484,7 +13484,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo) ...@@ -13484,7 +13484,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
/* to allow dumping pg_catalog; not accepted on input */ /* to allow dumping pg_catalog; not accepted on input */
appendPQExpBufferStr(q, "default"); appendPQExpBufferStr(q, "default");
else else
fatal("unrecognized collation provider: %s\n", fatal("unrecognized collation provider: %s",
collprovider); collprovider);
if (strcmp(PQgetvalue(res, 0, i_collisdeterministic), "f") == 0) if (strcmp(PQgetvalue(res, 0, i_collisdeterministic), "f") == 0)
......
...@@ -555,7 +555,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries) ...@@ -555,7 +555,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries)
else if (controlFile == &ControlFile_target) else if (controlFile == &ControlFile_target)
histfile = slurpFile(datadir_target, path, NULL); histfile = slurpFile(datadir_target, path, NULL);
else else
pg_fatal("invalid control file\n"); pg_fatal("invalid control file");
history = rewind_parseTimeLineHistory(histfile, tli, nentries); history = rewind_parseTimeLineHistory(histfile, tli, nentries);
pg_free(histfile); pg_free(histfile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment