From 18d921da6d34b3eb8e506bb4194a3164cf97f42e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 16 May 2016 21:27:30 +0000 Subject: [PATCH] Fix decoding of BPF_MAP_UPDATE_ELEM flags * bpf.c (bpf_map_update_elem): Print attr.flags using printxval64. --- bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("}"); } -- 2.40.0