[PATCH 7/9] xfs_mdrestore: emit newlines for fatal errors

Darrick J. Wong
2023-11-22T23:07:31Z

From: Darrick J. Wong <djwong@kernel.org>

Spit out a newline after a fatal error message.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
mdrestore/xfs_mdrestore.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mdrestore/xfs_mdrestore.c b/mdrestore/xfs_mdrestore.c
index 5dfc423493e..3190e07e478 100644
--- a/mdrestore/xfs_mdrestore.c
+++ b/mdrestore/xfs_mdrestore.c
@@ -275,10 +275,10 @@ read_header_v2(
fatal("error reading from metadump file\n");

if (h->v2.xmh_incompat_flags != 0)
- fatal("Metadump header has unknown incompat flags set");
+ fatal("Metadump header has unknown incompat flags set\n");

if (h->v2.xmh_reserved != 0)
- fatal("Metadump header's reserved field has a non-zero value");
+ fatal("Metadump header's reserved field has a non-zero value\n");

want_external_log = !!(be32_to_cpu(h->v2.xmh_incompat_flags) &
XFS_MD2_COMPAT_EXTERNALLOG);