diff options
Diffstat (limited to 'TAO/tao/IOR_LookupTable.cpp')
-rw-r--r-- | TAO/tao/IOR_LookupTable.cpp | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/TAO/tao/IOR_LookupTable.cpp b/TAO/tao/IOR_LookupTable.cpp index 5ed31afa4b0..728dc0cfe0f 100644 --- a/TAO/tao/IOR_LookupTable.cpp +++ b/TAO/tao/IOR_LookupTable.cpp @@ -1,7 +1,6 @@ // $Id$ -#include "tao/IOR_LookupTable.h" -#include "tao/debug.h" +#include "IOR_LookupTable.h" ACE_RCSID(tao, IOR_TableLookup, "$Id$") @@ -33,23 +32,20 @@ TAO_IOR_LookupTable::add_ior (ACE_CString &object_name, switch (this->hash_map_.bind (object_name, ior)) { case 1 : // object name already exists in the table. - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "TAO (%P|%t) Object Name already exists in the IOR table\n")); + ACE_DEBUG ((LM_DEBUG, + "Object Name already exists in the table\n")); return 1; case -1 : // Failure. - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "TAO (%P|%t) Unable to bind in IOR tao\n")); - return -1; + ACE_ERROR_RETURN ((LM_ERROR, + "Unable to bind in IOR_LookupTable::add_ior ()"), + -1); } - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "TAO (%P|%t) IOR Table: <%s> -> <%s>\n", - object_name.c_str (), - ior.c_str ())); - + ACE_DEBUG ((LM_DEBUG, + "\n%s:%s Added to the IOR table\n", + object_name.c_str (), + ior.c_str ())); + return 0; } @@ -61,11 +57,6 @@ TAO_IOR_LookupTable::find_ior (ACE_CString &object_name, // returns 0 on success. // -1 on failure. - if (TAO_debug_level > 0) - ACE_DEBUG ((LM_DEBUG, - "TAO (%P|%t) IOR Table find <%s>\n", - object_name.c_str ())); - return this->hash_map_.find (object_name, ior); } |