summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 01:43:52 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-23 01:43:52 +0000
commit16042ee425923ae65212b527dc783a97db134569 (patch)
tree117a1ff60d5fa7a3de0d324571dc177effe1f6f6 /TAO
parent46eeb3bb628bf491d6039ee557cbd62bf70566c9 (diff)
downloadATCD-16042ee425923ae65212b527dc783a97db134569.tar.gz
(svc): print out errno string if ORB initialization fails
Diffstat (limited to 'TAO')
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp
index 39cc0928d15..20def5cc37a 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Cubit_Task.cpp
@@ -45,7 +45,7 @@ Cubit_Task::svc (void)
if (result == -1)
ACE_ERROR_RETURN ((LM_ERROR,
- "ORB initialization failed.\n"),
+ "%p\n", "ORB initialization failed"),
-1);
result = this->create_servants ();
if (result == -1)
@@ -116,11 +116,11 @@ Cubit_Task::initialize_orb (void)
return 0;
// Initialize the TAO_Naming_Client.
if (my_name_client_.init (orb_.in ()) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize "
- "the TAO_Naming_Client. \n"),
- -1);
-
+ ACE_ERROR_RETURN ((LM_ERROR,
+ " (%P|%t) Unable to initialize "
+ "the TAO_Naming_Client. \n"),
+ -1);
+
// Register the servant with the Naming Context....
CosNaming::Name cubit_context_name (1);
cubit_context_name.length (1);
@@ -135,18 +135,18 @@ Cubit_Task::initialize_orb (void)
if (TAO_TRY_ENV.exception() != 0)
{
CosNaming::NamingContext::AlreadyBound_ptr ex =
- CosNaming::NamingContext::AlreadyBound::_narrow
+ CosNaming::NamingContext::AlreadyBound::_narrow
(TAO_TRY_ENV.exception());
if (ex != 0)
{
TAO_TRY_ENV.clear ();
- objref = this->my_name_client_->resolve
+ objref = this->my_name_client_->resolve
(cubit_context_name, TAO_TRY_ENV);
ACE_DEBUG ((LM_DEBUG,
"NamingContext::AlreadyBound\n"));
}
else
- TAO_TRY_ENV.print_exception
+ TAO_TRY_ENV.print_exception
("bind() Cubit context object\n");
}
TAO_CHECK_ENV;
@@ -221,7 +221,7 @@ Cubit_Task::create_servants (void)
i),
2);
- this->orb_manager_.activate_under_child_poa
+ this->orb_manager_.activate_under_child_poa
(buffer,
this->servants_[i],
TAO_TRY_ENV);
@@ -254,7 +254,7 @@ Cubit_Task::create_servants (void)
cubit.in (),
TAO_TRY_ENV);
if (TAO_TRY_ENV.exception () != 0)
- TAO_TRY_ENV.print_exception
+ TAO_TRY_ENV.print_exception
("Attempt to bind() a cubit object to the name service Failed!\n");
else
ACE_DEBUG ((LM_DEBUG,