summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-07-17 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-07-17 08:00:00 +0000
commitdef0a1e65bce9d18056ae1eb907f8de5d82a71ad (patch)
tree2e44ff9c6ac8ee746d013aa053df551b8ba99df3
parent0988cd13704c7777d1cf9638cf9a2e31036c8b9c (diff)
downloadstrace-def0a1e65bce9d18056ae1eb907f8de5d82a71ad.tar.gz
statx: use PRINT_FIELD_FLAGS
* statx.c (SYS_FUNC(statx)): Use PRINT_FIELD_FLAGS instead of printflags.
-rw-r--r--statx.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/statx.c b/statx.c
index 54b6d7c76..2d40d4004 100644
--- a/statx.c
+++ b/statx.c
@@ -49,14 +49,14 @@ SYS_FUNC(statx)
if (umove_or_printaddr(tcp, tcp->u_arg[4], &stx))
return 0;
- tprints("{stx_mask=");
- printflags(statx_masks, stx.stx_mask, "STATX_???");
+ PRINT_FIELD_FLAGS("{", stx, stx_mask, statx_masks,
+ "STATX_???");
if (!abbrev(tcp))
PRINT_FIELD_U(", ", stx, stx_blksize);
- tprints(", stx_attributes=");
- printflags(statx_attrs, stx.stx_attributes, "STATX_ATTR_???");
+ PRINT_FIELD_FLAGS(", ", stx, stx_attributes, statx_attrs,
+ "STATX_ATTR_???");
if (!abbrev(tcp)) {
PRINT_FIELD_U(", ", stx, stx_nlink);
@@ -74,11 +74,8 @@ SYS_FUNC(statx)
if (!abbrev(tcp)) {
PRINT_FIELD_U(", ", stx, stx_blocks);
-
- tprints(", stx_attributes_mask=");
- printflags(statx_attrs, stx.stx_attributes_mask,
- "STATX_ATTR_???");
-
+ PRINT_FIELD_FLAGS(", ", stx, stx_attributes_mask,
+ statx_attrs, "STATX_ATTR_???");
PRINT_FIELD_TIME(stx_atime);
PRINT_FIELD_TIME(stx_btime);
PRINT_FIELD_TIME(stx_ctime);