diff options
author | Dmitry V. Levin <ldv@strace.io> | 2021-03-18 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-03-18 08:00:00 +0000 |
commit | 24f84718436043225a283b305698d374a9a23e19 (patch) | |
tree | 98f7fd60bc197d108c02f5b58f11e3b316b0f4d8 | |
parent | 45ae01fa6e1e5fea2a4f5ac0a83a6627bc21efe2 (diff) | |
download | strace-24f84718436043225a283b305698d374a9a23e19.tar.gz |
ustat: use print_fields.h helpers
* src/ustat.c (SYS_FUNC(ustat)): Use tprint_arg_next.
-rw-r--r-- | src/ustat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ustat.c b/src/ustat.c index a9a5dfc3b..936c948b5 100644 --- a/src/ustat.c +++ b/src/ustat.c @@ -17,10 +17,12 @@ typedef struct ustat struct_ustat; SYS_FUNC(ustat) { - if (entering(tcp)) + if (entering(tcp)) { + /* dev */ print_dev_t((unsigned int) tcp->u_arg[0]); - else { - tprints(", "); + tprint_arg_next(); + } else { + /* ubuf */ #ifdef HAVE_USTAT_H struct_ustat ust; |