diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-04 19:34:47 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-04 19:34:47 +0000 |
commit | 265c1fd82d7e0990f975d7fadedf1262865bce50 (patch) | |
tree | 217b3404aa1068d00c486616d555e50fee9d68ed | |
parent | ad50003417f8ed3873125780f86be0c0c6dadc1f (diff) | |
download | ATCD-265c1fd82d7e0990f975d7fadedf1262865bce50.tar.gz |
*** empty log message ***
-rw-r--r-- | ace/Parse_Node.cpp | 64 |
1 files changed, 36 insertions, 28 deletions
diff --git a/ace/Parse_Node.cpp b/ace/Parse_Node.cpp index 6131e3637f2..2b49e31105b 100644 --- a/ace/Parse_Node.cpp +++ b/ace/Parse_Node.cpp @@ -39,9 +39,11 @@ ACE_Stream_Node::apply (void) this->node_->parameters ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT ("did stream on %s, error = %d\n"), - this->node_->name (), - ace_yyerrno)); + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did stream on %s, error = %d\n"), + this->node_->name (), + ace_yyerrno)); } ACE_ALLOC_HOOK_DEFINE(ACE_Parse_Node) @@ -160,9 +162,11 @@ ACE_Suspend_Node::apply (void) if (ACE_Service_Config::suspend (this->name ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did suspend on %s, error = %d\n"), - this->name (), ace_yyerrno)); + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did suspend on %s, error = %d\n"), + this->name (), + ace_yyerrno)); } void @@ -172,10 +176,11 @@ ACE_Resume_Node::apply (void) if (ACE_Service_Config::resume (this->name ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did resume on %s, error = %d\n"), - this->name (), - ace_yyerrno)); + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did resume on %s, error = %d\n"), + this->name (), + ace_yyerrno)); } ACE_ALLOC_HOOK_DEFINE(ACE_Remove_Node) @@ -199,11 +204,11 @@ ACE_Remove_Node::apply (void) if (ACE_Service_Config::remove (this->name ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did remove on %s, error = %d\n"), - this->name (), - ace_yyerrno)); - + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did remove on %s, error = %d\n"), + this->name (), + ace_yyerrno)); } ACE_Dynamic_Node::ACE_Dynamic_Node (const ACE_Service_Type *sr, @@ -230,10 +235,11 @@ ACE_Dynamic_Node::apply (void) this->parameters ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did dynamic on %s, error = %d\n"), - this->name (), - ace_yyerrno)); + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did dynamic on %s, error = %d\n"), + this->name (), + ace_yyerrno)); } ACE_ALLOC_HOOK_DEFINE(ACE_Dynamic_Node) @@ -293,13 +299,13 @@ ACE_Static_Node::apply (void) this->parameters ()) == -1) ace_yyerrno++; - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did static on %s, error = %d\n"), - this->name (), - ace_yyerrno)); + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did static on %s, error = %d\n"), + this->name (), + ace_yyerrno)); } - ACE_Static_Node::~ACE_Static_Node (void) { ACE_TRACE ("ACE_Static_Node::~ACE_Static_Node"); @@ -578,10 +584,12 @@ void ACE_Dummy_Node::apply (void) { ACE_TRACE ("ACE_Dummy_Node::apply"); - ACE_DEBUG ((LM_DEBUG, - ASYS_TEXT ("did operations on stream %s, error = %d\n"), - this->name (), - ace_yyerrno)); + + if (ACE::debug ()) + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT ("did operations on stream %s, error = %d\n"), + this->name (), + ace_yyerrno)); } ACE_Dummy_Node::~ACE_Dummy_Node (void) |