From: Dmitry V. Levin Date: Mon, 16 May 2016 21:27:30 +0000 (+0000) Subject: Fix decoding of BPF_MAP_UPDATE_ELEM flags X-Git-Tag: v4.12~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18d921da6d34b3eb8e506bb4194a3164cf97f42e;p=strace Fix decoding of BPF_MAP_UPDATE_ELEM flags * bpf.c (bpf_map_update_elem): Print attr.flags using printxval64. --- diff --git a/bpf.c b/bpf.c index f7156f07..20070b37 100644 --- a/bpf.c +++ b/bpf.c @@ -83,7 +83,7 @@ bpf_map_update_elem(struct tcb *tcp, const long addr, unsigned int size) printfd(tcp, attr.map_fd); tprintf(", key=%#" PRIx64 ", value=%#" PRIx64 ", flags=", attr.key, attr.value); - printxval(bpf_map_update_elem_flags, attr.flags, "BPF_???"); + printxval64(bpf_map_update_elem_flags, attr.flags, "BPF_???"); tprints("}"); }