aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/pg_rewind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_rewind/pg_rewind.c')
-rw-r--r--src/bin/pg_rewind/pg_rewind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_rewind/pg_rewind.c b/src/bin/pg_rewind/pg_rewind.c
index 59c8695b6bd..3f42ea66274 100644
--- a/src/bin/pg_rewind/pg_rewind.c
+++ b/src/bin/pg_rewind/pg_rewind.c
@@ -505,7 +505,7 @@ progress_report(bool finished)
* Stay on the same line if reporting to a terminal and we're not done
* yet.
*/
- fprintf(stderr, (!finished && isatty(fileno(stderr))) ? "\r" : "\n");
+ fputc((!finished && isatty(fileno(stderr))) ? '\r' : '\n', stderr);
}
/*