summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r--ace/Log_Msg.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 1a2a06aa84c..a6d833432bf 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -1774,7 +1774,7 @@ ACE_Log_Msg::log (ACE_Log_Record &log_record,
int
ACE_Log_Msg::log_hexdump (ACE_Log_Priority log_priority,
const char *buffer,
- int size,
+ size_t size,
const ACE_TCHAR *text)
{
ACE_TCHAR buf[ACE_Log_Record::MAXLOGMSGLEN -
@@ -1782,17 +1782,15 @@ ACE_Log_Msg::log_hexdump (ACE_Log_Priority log_priority,
// 58 for the HEXDUMP header;
ACE_TCHAR *msg_buf;
- size_t text_sz = text ? ACE_OS::strlen(text) : 0;
+ size_t text_sz = text ? ACE_OS_String::strlen(text) : 0;
ACE_NEW_RETURN (msg_buf,
ACE_TCHAR[text_sz + 58],
-1);
buf[0] = 0; // in case size = 0
- int len = ACE::format_hexdump (buffer,
- size,
- buf,
- sizeof (buf) / sizeof (ACE_TCHAR) - text_sz);
+ size_t len = ACE::format_hexdump
+ (buffer, size, buf, sizeof (buf) / sizeof (ACE_TCHAR) - text_sz);
int sz = 0;