summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2021-04-25 20:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2021-04-25 20:00:00 +0000
commit752fa90e4661e3fa4bb26e9cda629207a4842a8e (patch)
tree800b1984d8ac76ed0f9fc137ef26144de1309b69
parent8be851d9254299a945c7c82c8547480059794e11 (diff)
downloadstrace-752fa90e4661e3fa4bb26e9cda629207a4842a8e.tar.gz
statx: use print_fields.h helpers
* src/statx.c (SYS_FUNC(statx)): Use tprint_arg_next.
-rw-r--r--src/statx.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/statx.c b/src/statx.c
index a0e040f17..6e68a036f 100644
--- a/src/statx.c
+++ b/src/statx.c
@@ -30,11 +30,15 @@ print_statx_timestamp(const struct_statx_timestamp *const p)
SYS_FUNC(statx)
{
if (entering(tcp)) {
+ /* dirfd */
print_dirfd(tcp, tcp->u_arg[0]);
- tprints(", ");
+ tprint_arg_next();
+
+ /* pathname */
printpath(tcp, tcp->u_arg[1]);
- tprints(", ");
+ tprint_arg_next();
+ /* flags */
unsigned int flags = tcp->u_arg[2];
printflags(at_statx_sync_types, flags & AT_STATX_SYNC_TYPE,
NULL);
@@ -43,11 +47,13 @@ SYS_FUNC(statx)
tprints("|");
printflags(at_flags, flags, NULL);
}
+ tprint_arg_next();
- tprints(", ");
+ /* mask */
printflags(statx_masks, tcp->u_arg[3], "STATX_???");
- tprints(", ");
+ tprint_arg_next();
} else {
+ /* statxbuf */
struct_statx stx;
if (umove_or_printaddr(tcp, tcp->u_arg[4], &stx))
return 0;