summaryrefslogtreecommitdiff
path: root/tests/SOCK_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SOCK_Test.cpp')
-rw-r--r--tests/SOCK_Test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/SOCK_Test.cpp b/tests/SOCK_Test.cpp
index e608a67a873..34000f53eee 100644
--- a/tests/SOCK_Test.cpp
+++ b/tests/SOCK_Test.cpp
@@ -62,8 +62,8 @@ client (void *arg)
if (con.complete (cli_stream, &server_addr, &tv) == -1)
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("connection failed")), 0);
else
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_addr.get_host_name ())));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) connected to %C\n"),
+ server_addr.get_host_name ()));
}
if (cli_stream.disable (ACE_NONBLOCK) == -1)
@@ -140,8 +140,8 @@ server (void *arg)
while ((result = peer_acceptor->accept (new_stream, &cli_addr)) != -1)
{
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()), cli_addr.get_port_number ()));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) client %C connected from %d\n"),
+ cli_addr.get_host_name (), cli_addr.get_port_number ()));
// Enable non-blocking I/O.
if (new_stream.enable (ACE_NONBLOCK) == -1)