diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-07-17 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-07-17 08:00:00 +0000 |
commit | def0a1e65bce9d18056ae1eb907f8de5d82a71ad (patch) | |
tree | 2e44ff9c6ac8ee746d013aa053df551b8ba99df3 | |
parent | 0988cd13704c7777d1cf9638cf9a2e31036c8b9c (diff) | |
download | strace-def0a1e65bce9d18056ae1eb907f8de5d82a71ad.tar.gz |
statx: use PRINT_FIELD_FLAGS
* statx.c (SYS_FUNC(statx)): Use PRINT_FIELD_FLAGS instead of
printflags.
-rw-r--r-- | statx.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -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); |