aboutsummaryrefslogtreecommitdiff
path: root/contrib/pg_upgrade/util.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2012-08-03 12:43:37 -0400
committerBruce Momjian <bruce@momjian.us>2012-08-03 12:43:37 -0400
commite8969c4733b15857d6af2ec024a102897bfbfbf2 (patch)
tree165e66a19e0c6f3b18b517b09b892f7b9292f7e9 /contrib/pg_upgrade/util.c
parent962e0cc71e839c58fb9125fa85511b8bbb8bdbee (diff)
downloadpostgresql-e8969c4733b15857d6af2ec024a102897bfbfbf2.tar.gz
postgresql-e8969c4733b15857d6af2ec024a102897bfbfbf2.zip
In pg_upgrade, use pg_log() instead of prep_status() for
newline-terminated messages, per suggestion from Tom. Backpatch to 9.2.
Diffstat (limited to 'contrib/pg_upgrade/util.c')
-rw-r--r--contrib/pg_upgrade/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/util.c b/contrib/pg_upgrade/util.c
index 76cd20b23d7..1c7120471f8 100644
--- a/contrib/pg_upgrade/util.c
+++ b/contrib/pg_upgrade/util.c
@@ -81,7 +81,7 @@ pg_log(eLogType type, char *fmt,...)
if (type != PG_VERBOSE || log_opts.verbose)
{
fwrite(message, strlen(message), 1, log_opts.internal);
- /* if we are using OVERWRITE_MESSAGE, add newline */
+ /* if we are using OVERWRITE_MESSAGE, add newline to log file */
if (strchr(message, '\r') != NULL)
fwrite("\n", 1, 1, log_opts.internal);
fflush(log_opts.internal);