summaryrefslogtreecommitdiff
path: root/ACE/ace/Log_Record.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2010-12-04 16:25:22 +0000
committerSteve Huston <shuston@riverace.com>2010-12-04 16:25:22 +0000
commit4250ae4c1ca8adb62a25cdf87734c4cb2258970c (patch)
treeae520666f5ae6a2953ea61c5deacaa318f8fdb94 /ACE/ace/Log_Record.cpp
parentfbb46a2183a1f1d8aea05b76c4a04dae60ed5a9c (diff)
downloadATCD-4250ae4c1ca8adb62a25cdf87734c4cb2258970c.tar.gz
ChangeLogTag:Sat Dec 4 14:25:26 UTC 2010 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/ace/Log_Record.cpp')
-rw-r--r--ACE/ace/Log_Record.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/ACE/ace/Log_Record.cpp b/ACE/ace/Log_Record.cpp
index fb7ae019708..299b66bb480 100644
--- a/ACE/ace/Log_Record.cpp
+++ b/ACE/ace/Log_Record.cpp
@@ -5,7 +5,6 @@
#include "ace/Log_Msg.h"
#include "ace/ACE.h"
#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_time.h"
#include "ace/CDR_Stream.h"
#include "ace/Auto_Ptr.h"
#include "ace/Truncate.h"
@@ -233,9 +232,15 @@ ACE_Log_Record::format_msg (const ACE_TCHAR host_name[],
|| ACE_BIT_ENABLED (verbose_flag,
ACE_Log_Msg::VERBOSE_LITE))
{
- ACE_Time_Value now (this->secs_, this->usecs_);
- ACE::timestamp (now, timestamp, 27);
+ ACE_Time_Value reftime (this->secs_, this->usecs_);
+ if (0 == ACE::timestamp (reftime,
+ timestamp,
+ sizeof (timestamp) / sizeof (ACE_TCHAR)))
+ return -1;
+
// Historical timestamp in VERBOSE[_LITE] used 3 places for partial sec.
+ // 012345678901234567890123456
+ // 1989-10-18 14:25:36.123<nul>
timestamp[23] = '\0';
}