diff options
author | Dmitry V. Levin <ldv@strace.io> | 2021-05-05 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-05-05 08:00:00 +0000 |
commit | 0bf386e9925a1a60d2fd54cfbdb05bfdff54b02e (patch) | |
tree | 3b48dbec1ccdcae6016988a4213c4851c6be07e2 /src/netlink_crypto.c | |
parent | 0c93059df45fa5676ec36e1ba4f120334b6833f0 (diff) | |
download | strace-0bf386e9925a1a60d2fd54cfbdb05bfdff54b02e.tar.gz |
netlink_crypto: use print_fields.h helpers
decode_crypto_user_alg is called by decode_netlink_crypto
which in turn is called by decode_payload which is called
by decode_nlmsghdr_with_payload when printing an array.
* src/netlink_crypto.c (decode_crypto_user_alg): Use tprint_array_next.
Diffstat (limited to 'src/netlink_crypto.c')
-rw-r--r-- | src/netlink_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink_crypto.c b/src/netlink_crypto.c index d79ded51b..96dc8ba0c 100644 --- a/src/netlink_crypto.c +++ b/src/netlink_crypto.c @@ -197,7 +197,7 @@ decode_crypto_user_alg(struct tcb *const tcp, const size_t offset = NLMSG_ALIGN(sizeof(alg)); if (len > offset) { - tprints(", "); + tprint_array_next(); decode_nlattr(tcp, addr + offset, len - offset, crypto_nl_attrs, "CRYPTOCFGA_???", crypto_user_alg_nla_decoders, |