]> granicus.if.org Git - postgresql/commitdiff
Remove redundant newlines from error messages
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 2 Jul 2019 22:18:43 +0000 (23:18 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 2 Jul 2019 22:28:42 +0000 (23:28 +0100)
These are no longer needed/allowed with the new logging API.

src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_rewind/pg_rewind.c

index 63f554307cd7729587b43d109d3592181497c46d..15f43f9432be3c72399932205830bb2a0118e156 100644 (file)
@@ -2236,7 +2236,7 @@ main(int argc, char **argv)
                                        format = 't';
                                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);
                                        exit(1);
                                }
@@ -2308,7 +2308,7 @@ main(int argc, char **argv)
                                compresslevel = atoi(optarg);
                                if (compresslevel < 0 || compresslevel > 9)
                                {
-                                       pg_log_error("invalid compression level \"%s\"\n", optarg);
+                                       pg_log_error("invalid compression level \"%s\"", optarg);
                                        exit(1);
                                }
                                break;
index 972318904b3331325fc57606cdfaf829146f4fa2..0e547e83be8000a0a30ded3e375fc2c334facce2 100644 (file)
@@ -568,7 +568,7 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh)
                        }
                }
                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;
index b07d58c4a8f26599f1dcc7694d73272244ed2d08..1cd25adb6cf310a64585fabd213d6abf39f1910e 100644 (file)
@@ -13484,7 +13484,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
                /* to allow dumping pg_catalog; not accepted on input */
                appendPQExpBufferStr(q, "default");
        else
-               fatal("unrecognized collation provider: %s\n",
+               fatal("unrecognized collation provider: %s",
                          collprovider);
 
        if (strcmp(PQgetvalue(res, 0, i_collisdeterministic), "f") == 0)
index 6e77201be6c7b52f9bb22d5b54b8c2a539d3d458..d378053de450ce6693f5bb6e38a24c3a908a43a2 100644 (file)
@@ -555,7 +555,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries)
                else if (controlFile == &ControlFile_target)
                        histfile = slurpFile(datadir_target, path, NULL);
                else
-                       pg_fatal("invalid control file\n");
+                       pg_fatal("invalid control file");
 
                history = rewind_parseTimeLineHistory(histfile, tli, nentries);
                pg_free(histfile);