]> granicus.if.org Git - strace/commitdiff
net: use print_xlat_ex in tprint_sock_type
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 4 Apr 2018 12:38:22 +0000 (14:38 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 27 Apr 2018 00:56:25 +0000 (00:56 +0000)
In order to respect current xlat style setting.

* next.c (tprint_sock_type): Use print_xlat_ex instead of tprints
for socket type printing.

net.c

diff --git a/net.c b/net.c
index 67452964351d5705a8853473b36f4dd269b50e66..d7267912c9971bc516c45978a0854dcd770ebec3 100644 (file)
--- a/net.c
+++ b/net.c
@@ -113,7 +113,7 @@ tprint_sock_type(unsigned int flags)
        const char *str = xlookup(socktypes, flags & SOCK_TYPE_MASK);
 
        if (str) {
-               tprints(str);
+               print_xlat_ex(flags & SOCK_TYPE_MASK, str, XLAT_STYLE_DEFAULT);
                flags &= ~SOCK_TYPE_MASK;
                if (!flags)
                        return;