diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-11-11 02:31:09 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-11-11 02:31:09 +0000 |
commit | e63339c2ace7aebc8e48ec9609483509db0bdd33 (patch) | |
tree | f3b9742b8c3cf3376f6bd3a679697c5716047386 /ace/Profile_Timer.cpp | |
parent | 9d230d6142aac1e92f59b8c26202f8c4c758c5e8 (diff) | |
download | ATCD-e63339c2ace7aebc8e48ec9609483509db0bdd33.tar.gz |
ChangeLogTag:Fri Nov 10 20:26:01 2000 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/Profile_Timer.cpp')
-rw-r--r-- | ace/Profile_Timer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp index 0ec1f9ba00d..09d7172c531 100644 --- a/ace/Profile_Timer.cpp +++ b/ace/Profile_Timer.cpp @@ -32,8 +32,11 @@ ACE_Profile_Timer::ACE_Profile_Timer (void) char buf[20]; ACE_OS::sprintf (buf, "/proc/%d", ACE_static_cast (int, ACE_OS::getpid ())); - if ((this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0)) == -1) - ACE_OS::perror (buf); + this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0); + if (this->proc_handle_ == -1) + ACE_ERROR ((LM_ERROR, + ACE_LIB_TEXT ("%p\n"), + buf)); # elif defined (ACE_HAS_GETRUSAGE) ACE_OS::memset (&this->begin_time_, 0, sizeof this->begin_time_); ACE_OS::memset (&this->end_time_, 0, sizeof this->end_time_); @@ -47,7 +50,8 @@ ACE_Profile_Timer::~ACE_Profile_Timer (void) ACE_TRACE ("ACE_Profile_Timer::~ACE_Profile_Timer"); # if defined (ACE_HAS_PRUSAGE_T) if (ACE_OS::close (this->proc_handle_) == -1) - ACE_OS::perror ("ACE_Profile_Timer::~ACE_Profile_Timer"); + ACE_ERROR ((LM_ERROR, + ACE_LIB_TEXT ("ACE_Profile_Timer::~ACE_Profile_Timer"))); # endif /* ACE_HAS_PRUSAGE_T */ } |