summaryrefslogtreecommitdiff
path: root/src/bin/pg_upgrade/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_upgrade/util.c')
-rw-r--r--src/bin/pg_upgrade/util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/util.c b/src/bin/pg_upgrade/util.c
index 9edfe7c3605..1a328b42700 100644
--- a/src/bin/pg_upgrade/util.c
+++ b/src/bin/pg_upgrade/util.c
@@ -47,7 +47,10 @@ end_progress_output(void)
* nicely.
*/
if (log_opts.isatty)
- pg_log(PG_REPORT, "\r%-*s", MESSAGE_WIDTH, "");
+ {
+ printf("\r");
+ pg_log(PG_REPORT, "%-*s", MESSAGE_WIDTH, "");
+ }
else if (log_opts.verbose)
pg_log(PG_REPORT, "%-*s", MESSAGE_WIDTH, "");
}