diff mbox series

[02/10] xfs_io: print path in path_print

Message ID 167657880284.3477097.17451710627088149390.stgit@magnolia (mailing list archive)
State Superseded
Headers show
Series xfsprogs: actually use getparent ioctl | expand

Commit Message

Darrick J. Wong Feb. 16, 2023, 9:03 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 a6f3fa0c..b18e02c4 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;
 }