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:
2
net.c
2
net.c
@ -113,7 +113,7 @@ tprint_sock_type(unsigned int flags)
|
|||||||
const char *str = xlookup(socktypes, flags & SOCK_TYPE_MASK);
|
const char *str = xlookup(socktypes, flags & SOCK_TYPE_MASK);
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
tprints(str);
|
print_xlat_ex(flags & SOCK_TYPE_MASK, str, XLAT_STYLE_DEFAULT);
|
||||||
flags &= ~SOCK_TYPE_MASK;
|
flags &= ~SOCK_TYPE_MASK;
|
||||||
if (!flags)
|
if (!flags)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user