aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2019-12-13 16:21:17 -0500
committerEric Sandeen <sandeen@redhat.com>2019-12-13 16:21:17 -0500
commit2ab6ea6a4cf7f7be6def5444229739effc6bad5b (patch)
tree5d91c07f484c4a1330a94d7e61e8c9777feccd75
parent998aed52bede0194531092247cbf7ebd015ad054 (diff)
downloadxfsprogs-dev-2ab6ea6a4cf7f7be6def5444229739effc6bad5b.tar.gz
xfsprogs: add missing line feeds in libxfs/rdwr.c
In libxfs/rdwr.c, there are several fprintf() calls that are missing trailing line feeds. This translates to the following CLI prompt being on the same line as the message. Add missing line feeds, alleviating the issue. Fixes: 0a7942b38215 ("libxfs: don't discard dirty buffers") Signed-off-by: John Pittman <jpittman@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--libxfs/rdwr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
index 7080cd9cb6..3f69192d05 100644
--- a/libxfs/rdwr.c
+++ b/libxfs/rdwr.c
@@ -651,7 +651,7 @@ __libxfs_getbufr(int blen)
pthread_mutex_unlock(&xfs_buf_freelist.cm_mutex);
bp->b_ops = NULL;
if (bp->b_flags & LIBXFS_B_DIRTY)
- fprintf(stderr, "found dirty buffer (bulk) on free list!");
+ fprintf(stderr, "found dirty buffer (bulk) on free list!\n");
return bp;
}
@@ -1224,7 +1224,7 @@ libxfs_brelse(
return;
if (bp->b_flags & LIBXFS_B_DIRTY)
fprintf(stderr,
- "releasing dirty buffer to free list!");
+ "releasing dirty buffer to free list!\n");
pthread_mutex_lock(&xfs_buf_freelist.cm_mutex);
list_add(&bp->b_node.cn_mru, &xfs_buf_freelist.cm_list);
@@ -1245,7 +1245,7 @@ libxfs_bulkrelse(
list_for_each_entry(bp, list, b_node.cn_mru) {
if (bp->b_flags & LIBXFS_B_DIRTY)
fprintf(stderr,
- "releasing dirty buffer (bulk) to free list!");
+ "releasing dirty buffer (bulk) to free list!\n");
count++;
}