]> granicus.if.org Git - strace/commitdiff
Fix decoding of BPF_MAP_UPDATE_ELEM flags
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 21:27:30 +0000 (21:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 21:47:09 +0000 (21:47 +0000)
* bpf.c (bpf_map_update_elem): Print attr.flags using printxval64.

bpf.c

diff --git a/bpf.c b/bpf.c
index f7156f07da3f80c4bfebf86fbcca5064c188755b..20070b371bf33c1d1cc91481e6bf01c86c98356f 100644 (file)
--- 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("}");
 }