diff mbox series

[7/9] xfs_io: print path in path_print

Message ID 167899415468.16278.3065032307974617782.stgit@frogsfrogsfrogs (mailing list archive)
State New, archived
Headers show
Series xfsprogs: tool fixes for parent pointers | expand

Commit Message

Darrick J. Wong March 16, 2023, 7:27 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Actually print the path string once we've bothered to construct it into
a string buffer.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 io/parent.c |    2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/io/parent.c b/io/parent.c
index a6f3fa0ca..b18e02c4b 100644
--- a/io/parent.c
+++ b/io/parent.c
@@ -87,6 +87,8 @@  path_print(
 	ret = path_list_to_string(path, buf + ret, len - ret);
 	if (ret < 0)
 		return ret;
+
+	printf("%s\n", buf);
 	return 0;
 }