]> granicus.if.org Git - strace/commitdiff
netlink: honor custom xlat style setting during nlmsg flags printing
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 25 Aug 2018 23:11:37 +0000 (01:11 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 2 Sep 2018 17:44:26 +0000 (17:44 +0000)
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"
netlink.c

index 8a30483c39c45664e977511b2c89fc4ceff78483..179a9997b2b695906e61f2dcb0867a5eecf1340b 100644 (file)
--- 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);
 }