Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24c7000

Browse files
committed
Remove redundant newlines from error messages
These are no longer needed/allowed with the new logging API.
1 parentb4771d7 commit24c7000

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ main(int argc, char **argv)
22362236
format='t';
22372237
else
22382238
{
2239-
pg_log_error("invalid output format \"%s\", must be \"plain\" or \"tar\"\n",
2239+
pg_log_error("invalid output format \"%s\", must be \"plain\" or \"tar\"",
22402240
optarg);
22412241
exit(1);
22422242
}
@@ -2308,7 +2308,7 @@ main(int argc, char **argv)
23082308
compresslevel=atoi(optarg);
23092309
if (compresslevel<0||compresslevel>9)
23102310
{
2311-
pg_log_error("invalid compression level \"%s\"\n",optarg);
2311+
pg_log_error("invalid compression level \"%s\"",optarg);
23122312
exit(1);
23132313
}
23142314
break;

‎src/bin/pg_dump/pg_backup_tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ _tarReadRaw(ArchiveHandle *AH, void *buf, size_t len, TAR_MEMBER *th, FILE *fh)
568568
}
569569
}
570570
else
571-
fatal("internal error -- neither th nor fh specified in tarReadRaw()\n");
571+
fatal("internal error -- neither th nor fh specified in tarReadRaw()");
572572
}
573573

574574
ctx->tarFHpos+=res+used;

‎src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13484,7 +13484,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
1348413484
/* to allow dumping pg_catalog; not accepted on input */
1348513485
appendPQExpBufferStr(q, "default");
1348613486
else
13487-
fatal("unrecognized collation provider: %s\n",
13487+
fatal("unrecognized collation provider: %s",
1348813488
collprovider);
1348913489

1349013490
if (strcmp(PQgetvalue(res, 0, i_collisdeterministic), "f") == 0)

‎src/bin/pg_rewind/pg_rewind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ getTimelineHistory(ControlFileData *controlFile, int *nentries)
555555
elseif (controlFile==&ControlFile_target)
556556
histfile=slurpFile(datadir_target,path,NULL);
557557
else
558-
pg_fatal("invalid control file\n");
558+
pg_fatal("invalid control file");
559559

560560
history=rewind_parseTimeLineHistory(histfile,tli,nentries);
561561
pg_free(histfile);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp