Fix decoding of BPF_MAP_UPDATE_ELEM flags
* bpf.c (bpf_map_update_elem): Print attr.flags using printxval64.
This commit is contained in:
parent
77086594ce
commit
18d921da6d
2
bpf.c
2
bpf.c
@ -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("}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user