netlink_netfilter: use xlat styles for res_id workaround printing
* netlink_netfilter.c (decode_netlink_netfilter): Call print_xlat_ex in order to respect xlat style setting.
This commit is contained in:
parent
da228c39ad
commit
741b34b3d1
@ -185,10 +185,13 @@ decode_netlink_netfilter(struct tcb *const tcp,
|
||||
tprints(", res_id=");
|
||||
if (subsys_id == NFNL_SUBSYS_NFTABLES
|
||||
&& res_id == NFNL_SUBSYS_NFTABLES) {
|
||||
tprints("htons(NFNL_SUBSYS_NFTABLES)");
|
||||
print_xlat_ex(nfmsg.res_id,
|
||||
"htons(NFNL_SUBSYS_NFTABLES)",
|
||||
XLAT_STYLE_DEFAULT);
|
||||
} else if (subsys_id == NFNL_SUBSYS_NFTABLES
|
||||
&& nfmsg.res_id == NFNL_SUBSYS_NFTABLES) {
|
||||
tprints("NFNL_SUBSYS_NFTABLES");
|
||||
print_xlat_ex(nfmsg.res_id, "NFNL_SUBSYS_NFTABLES",
|
||||
XLAT_STYLE_DEFAULT);
|
||||
} else {
|
||||
tprintf("htons(%d)", res_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user