diff options
author | Dmitry V. Levin <ldv@strace.io> | 2021-07-13 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-07-13 08:00:00 +0000 |
commit | bdc51e3be2c4361762a649c89186b6d2c8fa3b0d (patch) | |
tree | 23fb21bac065661ba7b0f173800b88d2a00a7749 | |
parent | 3f9488c32f1eb95c2c768786dce8546e618404a6 (diff) | |
download | strace-bdc51e3be2c4361762a649c89186b6d2c8fa3b0d.tar.gz |
bpf_sock_filter: use more print_fields.h helpers
* src/bpf_sock_filter.c (print_sock_filter_k): Use PRINT_VAL_U.
-rw-r--r-- | src/bpf_sock_filter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bpf_sock_filter.c b/src/bpf_sock_filter.c index 3cdde5f26..f0b51b345 100644 --- a/src/bpf_sock_filter.c +++ b/src/bpf_sock_filter.c @@ -30,11 +30,13 @@ print_sock_filter_k(const struct bpf_filter_block *const fp) return true; } else if (fp->k >= (unsigned int) SKF_NET_OFF) { print_xlat32(SKF_NET_OFF); - tprintf("+%u", fp->k - (unsigned int) SKF_NET_OFF); + tprints("+"); + PRINT_VAL_U(fp->k - (unsigned int) SKF_NET_OFF); return true; } else if (fp->k >= (unsigned int) SKF_LL_OFF) { print_xlat32(SKF_LL_OFF); - tprintf("+%u", fp->k - (unsigned int) SKF_LL_OFF); + tprints("+"); + PRINT_VAL_U(fp->k - (unsigned int) SKF_LL_OFF); return true; } } |