From e80f8e46127e45907db25b4ffd58c699fdf4c35f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 22 Mar 2023 18:02:31 +0100 Subject: [PATCH] libmount: fix typo, improve debug Signed-off-by: Karel Zak --- libmount/src/hook_mount.c | 2 +- libmount/src/optlist.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libmount/src/hook_mount.c b/libmount/src/hook_mount.c index c60c3513b5..fe744d0d5b 100644 --- a/libmount/src/hook_mount.c +++ b/libmount/src/hook_mount.c @@ -339,7 +339,7 @@ static int set_vfsflags(struct libmnt_context *cxt, errno = 0; rc = mount_setattr(api->fd_tree, "", callflags, &attr, sizeof(attr)); - set_syscall_status(cxt, "move_setattr", rc == 0); + set_syscall_status(cxt, "mount_setattr", rc == 0); if (rc && errno == EINVAL) return -MNT_ERR_APPLYFLAGS; diff --git a/libmount/src/optlist.c b/libmount/src/optlist.c index 8b771b7037..f1b15f7c01 100644 --- a/libmount/src/optlist.c +++ b/libmount/src/optlist.c @@ -843,7 +843,10 @@ int mnt_optlist_get_attrs(struct libmnt_optlist *ls, uint64_t *set, uint64_t *cl } DBG(OPTLIST, ul_debugobj(ls, "return attrs set=0x%08" PRIx64 - ", clr=0x%08" PRIx64, *set, *clr)); + ", clr=0x%08" PRIx64 " %s", + *set, *clr, + rec == MNT_OL_REC ? "[rec]" : + rec == MNT_OL_NOREC ? "[norec]" : "")); return 0; } -- 2.47.2