net: use print_xlat_ex in tprint_sock_type

In order to respect current xlat style setting.

* next.c (tprint_sock_type): Use print_xlat_ex instead of tprints
for socket type printing.
This commit is contained in:
Eugene Syromyatnikov 2018-04-04 14:38:22 +02:00 committed by Dmitry V. Levin
parent 942033a35e
commit 6fb0ffca75

2
net.c
View File

@ -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;