Fix decoding of BPF_MAP_UPDATE_ELEM flags

* bpf.c (bpf_map_update_elem): Print attr.flags using printxval64.
This commit is contained in:
Дмитрий Левин 2016-05-16 21:27:30 +00:00
parent 77086594ce
commit 18d921da6d

2
bpf.c
View File

@ -83,7 +83,7 @@ bpf_map_update_elem(struct tcb *tcp, const long addr, unsigned int size)
printfd(tcp, attr.map_fd); printfd(tcp, attr.map_fd);
tprintf(", key=%#" PRIx64 ", value=%#" PRIx64 ", flags=", tprintf(", key=%#" PRIx64 ", value=%#" PRIx64 ", flags=",
attr.key, attr.value); attr.key, attr.value);
printxval(bpf_map_update_elem_flags, attr.flags, "BPF_???"); printxval64(bpf_map_update_elem_flags, attr.flags, "BPF_???");
tprints("}"); tprints("}");
} }