From: Eugene Syromyatnikov Date: Sat, 25 Aug 2018 20:13:51 +0000 (+0200) Subject: netlink_netfilter: use xlat styles for res_id workaround printing X-Git-Tag: v4.25~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=298f29a15b8396a6fb6f2cb395b5c11db8569045;p=strace 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. --- diff --git a/netlink_netfilter.c b/netlink_netfilter.c index 1d59ae33..ae924291 100644 --- a/netlink_netfilter.c +++ b/netlink_netfilter.c @@ -70,10 +70,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); }