From: Eugene Syromyatnikov Date: Sat, 25 Aug 2018 23:11:37 +0000 (+0200) Subject: netlink: honor custom xlat style setting during nlmsg flags printing X-Git-Tag: v4.25~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79878e783cf525f37cbf862ee8d2ab9a200af666;p=strace netlink: honor custom xlat style setting during nlmsg flags printing Commit v4.23~343 introduced xlat style argument to printflags_ex, but XLAT_STYLE_DEFAULT was introduced only in the next commit v4.23~342, which led to missing out fixing the sole external user of this peculiar extended interface. * netlink.c (decode_nlmsg_flags): Use XLAT_STYLE_DEFAULT instead of XLAT_STYLE_ABBREV in printflags_ex call. Fixes: v4.23~342 "Introduce XLAT_STYLE_DEFAULT" --- diff --git a/netlink.c b/netlink.c index 8a30483c..179a9997 100644 --- a/netlink.c +++ b/netlink.c @@ -438,7 +438,7 @@ decode_nlmsg_flags(const uint16_t flags, const uint16_t type, } else if (family < ARRAY_SIZE(nlmsg_flags) && nlmsg_flags[family]) table = nlmsg_flags[family](type); - printflags_ex(flags, "NLM_F_???", XLAT_STYLE_ABBREV, + printflags_ex(flags, "NLM_F_???", XLAT_STYLE_DEFAULT, netlink_flags, table, NULL); }