net.c: fix printing AF_IPX sockets addresses, part 2
* net.c (print_sockaddr_data_ipx): Print sockaddr_ipx.sipx_network using %#08x format. Print elements of sockaddr_ipx.sipx_node array and sockaddr_ipx.sipx_type using %#02x format.
This commit is contained in:
parent
0e09796e95
commit
102c8ca79e
6
net.c
6
net.c
@ -182,15 +182,15 @@ print_sockaddr_data_ipx(const void *const buf, const int addrlen)
|
||||
unsigned int i;
|
||||
|
||||
tprintf("sipx_port=htons(%u)"
|
||||
", sipx_network=htonl(%08x)"
|
||||
", sipx_network=htonl(%#08x)"
|
||||
", sipx_node=[",
|
||||
ntohs(sa_ipx->sipx_port),
|
||||
ntohl(sa_ipx->sipx_network));
|
||||
for (i = 0; i < IPX_NODE_LEN; ++i) {
|
||||
tprintf("%s%02x", i ? ", " : "",
|
||||
tprintf("%s%#02x", i ? ", " : "",
|
||||
sa_ipx->sipx_node[i]);
|
||||
}
|
||||
tprintf("], sipx_type=%02x", sa_ipx->sipx_type);
|
||||
tprintf("], sipx_type=%#02x", sa_ipx->sipx_type);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user