summaryrefslogtreecommitdiff
path: root/ace/Name_Proxy.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-12 22:28:40 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-12 22:28:40 +0000
commitf7f7b07dcccaea361887e068223e366f60e670bc (patch)
tree4683b14230e715d8206d8c64afdebbebbfcbacc1 /ace/Name_Proxy.cpp
parenta03612133f85ac33e239e617695edf46fa4f932b (diff)
downloadATCD-f7f7b07dcccaea361887e068223e366f60e670bc.tar.gz
Regular CE stuff.
Diffstat (limited to 'ace/Name_Proxy.cpp')
-rw-r--r--ace/Name_Proxy.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ace/Name_Proxy.cpp b/ace/Name_Proxy.cpp
index 02dc399a219..ca428ff2ded 100644
--- a/ace/Name_Proxy.cpp
+++ b/ace/Name_Proxy.cpp
@@ -12,7 +12,7 @@ ACE_Name_Proxy::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
this->connector_.dump ();
this->peer_.dump ();
- ACE_DEBUG ((LM_DEBUG, "reactor_ = %x", this->reactor_));
+ ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("reactor_ = %x"), this->reactor_));
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
}
@@ -50,7 +50,7 @@ ACE_Name_Proxy::ACE_Name_Proxy (const ACE_INET_Addr &remote_addr,
ACE_TRACE ("ACE_Name_Proxy::ACE_Name_Proxy");
if (this->open (remote_addr, options) == -1
&& options[ACE_Synch_Options::USE_TIMEOUT] && errno != EWOULDBLOCK)
- ACE_ERROR ((LM_ERROR, "%p\n", "ACE_Name_Proxy::ACE_Name_Proxy"));
+ ACE_ERROR ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("ACE_Name_Proxy::ACE_Name_Proxy")));
}
// Obtain underlying handle.
@@ -70,12 +70,12 @@ ACE_Name_Proxy::request_reply (ACE_Name_Request &request)
ssize_t length;
if ((length = request.encode (buffer)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "encode failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("encode failed")), -1);
// Transmit request via a blocking send.
if (this->peer_.send_n (buffer, length) != length)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send_n failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("send_n failed")), -1);
else
{
ACE_Name_Reply reply;
@@ -83,10 +83,10 @@ ACE_Name_Proxy::request_reply (ACE_Name_Request &request)
// Receive reply via blocking read.
if (this->peer_.recv (&reply, sizeof reply) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "recv failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("recv failed")), -1);
else if (reply.decode () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "decode failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("decode failed")), -1);
errno = int (reply.errnum ());
return reply.status ();
@@ -101,12 +101,12 @@ ACE_Name_Proxy::send_request (ACE_Name_Request &request)
ssize_t length;
if ((length = request.encode (buffer)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "encode failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("encode failed")), -1);
// Transmit request via a blocking send.
else if (this->peer_.send_n (buffer, length) != length)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send_n failed"), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("send_n failed")), -1);
return 0;
}
@@ -124,7 +124,7 @@ ACE_Name_Proxy::recv_reply (ACE_Name_Request &reply)
{
case -1:
// FALLTHROUGH
- ACE_DEBUG ((LM_DEBUG, "****************** recv_reply returned -1\n"));
+ ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("****************** recv_reply returned -1\n")));
default:
ACE_ERROR ((LM_ERROR, "%p got %d bytes, expected %d bytes\n",
"recv failed", n, sizeof (ACE_UINT32)));
@@ -155,7 +155,7 @@ ACE_Name_Proxy::recv_reply (ACE_Name_Request &reply)
// Decode the request into host byte order.
if (reply.decode () == -1)
{
- ACE_ERROR ((LM_ERROR, "%p\n", "decode failed"));
+ ACE_ERROR ((LM_ERROR, ASYS_TEXT ("%p\n"), ASYS_TEXT ("decode failed")));
return -1;
}
}