mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
slirp/debug: Print IP addresses in human readable form
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
05658ecb55
commit
8ee2022b44
2 changed files with 4 additions and 4 deletions
|
@ -701,9 +701,9 @@ tcp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
|
|||
memset(&addr, 0, addrlen);
|
||||
|
||||
DEBUG_CALL("tcp_listen");
|
||||
DEBUG_ARG("haddr = %s", inet_ntoa(*(struct in_addr *)&haddr));
|
||||
DEBUG_ARG("haddr = %s", inet_ntoa((struct in_addr){.s_addr = haddr}));
|
||||
DEBUG_ARG("hport = %d", ntohs(hport));
|
||||
DEBUG_ARG("laddr = %s", inet_ntoa(*(struct in_addr *)&laddr));
|
||||
DEBUG_ARG("laddr = %s", inet_ntoa((struct in_addr){.s_addr = laddr}));
|
||||
DEBUG_ARG("lport = %d", ntohs(lport));
|
||||
DEBUG_ARG("flags = %x", flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue