aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-06-18 23:57:00 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-06-18 23:57:38 +0300
commit2610cb3f7cb3227a520b60de37c74e1f99259c3c (patch)
treeff4aa216a319da8401911cb7e0e5853b713dd885 /src
parent03132da3b65eb44e65fe26267b73c101d6a2113a (diff)
downloadpostgresql-2610cb3f7cb3227a520b60de37c74e1f99259c3c.tar.gz
postgresql-2610cb3f7cb3227a520b60de37c74e1f99259c3c.zip
pg_dump: Add missing newlines at end of messages
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/dumputils.c2
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c4
-rw-r--r--src/bin/pg_dump/pg_backup_directory.c4
-rw-r--r--src/bin/pg_dump/pg_dump.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_dump/dumputils.c b/src/bin/pg_dump/dumputils.c
index 8574380b9cf..91f2774955c 100644
--- a/src/bin/pg_dump/dumputils.c
+++ b/src/bin/pg_dump/dumputils.c
@@ -1323,7 +1323,7 @@ void
on_exit_nicely(on_exit_nicely_callback function, void *arg)
{
if (on_exit_nicely_index >= MAX_ON_EXIT_NICELY)
- exit_horribly(NULL, "out of on_exit_nicely slots");
+ exit_horribly(NULL, "out of on_exit_nicely slots\n");
on_exit_nicely_list[on_exit_nicely_index].function = function;
on_exit_nicely_list[on_exit_nicely_index].arg = arg;
on_exit_nicely_index++;
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index 5826bace685..7f43bca94cf 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -1566,7 +1566,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
{
/* this check is purely paranoia, maxDumpId should be correct */
if (te->dumpId <= 0 || te->dumpId > maxDumpId)
- exit_horribly(modulename, "bad dumpId");
+ exit_horribly(modulename, "bad dumpId\n");
/* tocsByDumpId indexes all TOCs by their dump ID */
AH->tocsByDumpId[te->dumpId] = te;
@@ -1587,7 +1587,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
* item's dump ID, so there should be a place for it in the array.
*/
if (tableId <= 0 || tableId > maxDumpId)
- exit_horribly(modulename, "bad table dumpId for TABLE DATA item");
+ exit_horribly(modulename, "bad table dumpId for TABLE DATA item\n");
AH->tableDataId[tableId] = te->dumpId;
}
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c
index 32dcb12fdf8..796444421fb 100644
--- a/src/bin/pg_dump/pg_backup_directory.c
+++ b/src/bin/pg_dump/pg_backup_directory.c
@@ -652,7 +652,7 @@ createDirectory(const char *dir)
* between our two calls.
*/
if (mkdir(dir, 0700) < 0)
- exit_horribly(modulename, "could not create directory %s: %s",
+ exit_horribly(modulename, "could not create directory %s: %s\n",
dir, strerror(errno));
}
@@ -667,7 +667,7 @@ prependDirectory(ArchiveHandle *AH, const char *relativeFilename)
dname = ctx->directory;
if (strlen(dname) + 1 + strlen(relativeFilename) + 1 > MAXPGPATH)
- exit_horribly(modulename, "file name too long: \"%s\"", dname);
+ exit_horribly(modulename, "file name too long: \"%s\"\n", dname);
strcpy(buf, dname);
strcat(buf, "/");
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 4780c37d302..5fde18921ac 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -2531,7 +2531,7 @@ binary_upgrade_extension_member(PQExpBuffer upgrade_buffer,
extobj = NULL;
}
if (extobj == NULL)
- exit_horribly(NULL, "could not find parent extension for %s", objlabel);
+ exit_horribly(NULL, "could not find parent extension for %s\n", objlabel);
appendPQExpBuffer(upgrade_buffer,
"\n-- For binary upgrade, handle extension membership the hard way\n");