]> granicus.if.org Git - strace/commit
Introduce printflags_ex function
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 8 Jun 2017 22:15:58 +0000 (22:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 8 Jun 2017 22:26:46 +0000 (22:26 +0000)
commit127962f217a8205666431352bd611f7b2062476b
treee05f6a36cc10387489c83d407ca50cf7cf498605
parent427e30ef1cb5f43e6f0ff059fc91f54b77d588a8
Introduce printflags_ex function

Add printflags_ex extension over printflags64 that, similar
to printxvals, takes a NULL-terminated sequence of xlat pointers.

* defs.h (printflags_ex): New prototype.
(printflags64): Turn into a thin wrapper around printflags_ex.
* netlink.c (decode_nlmsg_flags): Use printflags_ex.
* util.c (printflags_ex): New function.
(printflags64): Remove.
* xlat/netlink_get_flags.in: Remove entries listed
in xlat/netlink_flags.in file.
* xlat/netlink_new_flags.in: Likewise.
defs.h
netlink.c
util.c
xlat/netlink_get_flags.in
xlat/netlink_new_flags.in