Skip to content

Commit e1e97e9

Browse files
committed
pg_dump: Add missing newlines at end of messages
1 parent f942974 commit e1e97e9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/bin/pg_dump/dumputils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ void
13231323
on_exit_nicely(on_exit_nicely_callback function, void *arg)
13241324
{
13251325
if (on_exit_nicely_index >= MAX_ON_EXIT_NICELY)
1326-
exit_horribly(NULL, "out of on_exit_nicely slots");
1326+
exit_horribly(NULL, "out of on_exit_nicely slots\n");
13271327
on_exit_nicely_list[on_exit_nicely_index].function = function;
13281328
on_exit_nicely_list[on_exit_nicely_index].arg = arg;
13291329
on_exit_nicely_index++;

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
15661566
{
15671567
/* this check is purely paranoia, maxDumpId should be correct */
15681568
if (te->dumpId <= 0 || te->dumpId > maxDumpId)
1569-
exit_horribly(modulename, "bad dumpId");
1569+
exit_horribly(modulename, "bad dumpId\n");
15701570

15711571
/* tocsByDumpId indexes all TOCs by their dump ID */
15721572
AH->tocsByDumpId[te->dumpId] = te;
@@ -1587,7 +1587,7 @@ buildTocEntryArrays(ArchiveHandle *AH)
15871587
* item's dump ID, so there should be a place for it in the array.
15881588
*/
15891589
if (tableId <= 0 || tableId > maxDumpId)
1590-
exit_horribly(modulename, "bad table dumpId for TABLE DATA item");
1590+
exit_horribly(modulename, "bad table dumpId for TABLE DATA item\n");
15911591

15921592
AH->tableDataId[tableId] = te->dumpId;
15931593
}

src/bin/pg_dump/pg_backup_directory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ createDirectory(const char *dir)
652652
* between our two calls.
653653
*/
654654
if (mkdir(dir, 0700) < 0)
655-
exit_horribly(modulename, "could not create directory %s: %s",
655+
exit_horribly(modulename, "could not create directory %s: %s\n",
656656
dir, strerror(errno));
657657
}
658658

@@ -667,7 +667,7 @@ prependDirectory(ArchiveHandle *AH, const char *relativeFilename)
667667
dname = ctx->directory;
668668

669669
if (strlen(dname) + 1 + strlen(relativeFilename) + 1 > MAXPGPATH)
670-
exit_horribly(modulename, "file name too long: \"%s\"", dname);
670+
exit_horribly(modulename, "file name too long: \"%s\"\n", dname);
671671

672672
strcpy(buf, dname);
673673
strcat(buf, "/");

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ binary_upgrade_extension_member(PQExpBuffer upgrade_buffer,
25312531
extobj = NULL;
25322532
}
25332533
if (extobj == NULL)
2534-
exit_horribly(NULL, "could not find parent extension for %s", objlabel);
2534+
exit_horribly(NULL, "could not find parent extension for %s\n", objlabel);
25352535

25362536
appendPQExpBuffer(upgrade_buffer,
25372537
"\n-- For binary upgrade, handle extension membership the hard way\n");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy