From 1498de83d601abcfa79c1e0f36d61dfc6a6a785f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 27 Oct 2008 08:20:36 +0000 Subject: For tracing purposes log a fake call to getaddrinfo when allocating/building the fake Curl_addrinfo. --- tests/libtest/lib558.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/libtest/lib558.c') diff --git a/tests/libtest/lib558.c b/tests/libtest/lib558.c index 9dabbb718..41f8c8678 100644 --- a/tests/libtest/lib558.c +++ b/tests/libtest/lib558.c @@ -51,6 +51,13 @@ static Curl_addrinfo *fake_ai(void) ai->ai_family = AF_INET; ai->ai_addrlen = ss_size; +#if defined(ENABLE_IPV6) && defined(CURLDEBUG) + /* For tracing purposes log a fake call to getaddrinfo */ + if(logfile) + fprintf(logfile, "ADDR %s:%d getaddrinfo() = %p\n", + __FILE__, __LINE__, (void *)ai); +#endif + return ai; } -- cgit v1.2.3