Juan Lang <[email protected]> writes: > + case WS_AF_INET: > + return wine_dbg_sprintf("{ family %d, address %s, port %d }", > + ((const struct sockaddr_in *)a)->sin_family, > + inet_ntoa(((const struct sockaddr_in > *)a)->sin_addr), > + ntohs(((const struct sockaddr_in > *)a)->sin_port)); > + case WS_AF_INET6: > + { > + char buf[46]; > + const char *p; > + struct WS_sockaddr_in6 *sin = (struct WS_sockaddr_in6 *)a; > + > + p = WS_inet_ntop( WS_AF_INET6, &sin->sin6_addr, buf, sizeof(buf) ); > + if (!p) > + p = "(unknown IPv6 address)"; > + return wine_dbg_sprintf("{ family %d, address %s, port %d }", > + sin->sin6_family, p, ntohs(sin->sin6_port));
There's no need to display family as a number since you know its value already, you could print it in symbolic form. -- Alexandre Julliard [email protected]
