From: caremoli Date: Tue, 25 Sep 2007 17:37:39 +0000 (+0000) Subject: CCAR: add 2 debug prints X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce6bddfbc1ce1d8827226a70cc973c06a83e017f;p=modules%2Fkernel.git CCAR: add 2 debug prints --- diff --git a/src/DSC/DSC_User/Datastream/Calcium/Calcium.cxx b/src/DSC/DSC_User/Datastream/Calcium/Calcium.cxx index 46f2a773d..c17ddb80a 100644 --- a/src/DSC/DSC_User/Datastream/Calcium/Calcium.cxx +++ b/src/DSC/DSC_User/Datastream/Calcium/Calcium.cxx @@ -5,6 +5,8 @@ #include #include +//#define _DEBUG_ + PySupervCompo::PySupervCompo( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, Engines::Container_ptr contain, @@ -49,6 +51,10 @@ extern "C" void create_calcium_port(Superv_Component_i* compo,char* name,char* type,char *mode,char* depend) { +#ifdef _DEBUG_ + std::cerr << "create_calcium_port: " << name << " " << type << " " << mode << " " << depend << std::endl; +#endif + if(std::string(mode) == "IN") { provides_port * port ; diff --git a/src/DSC/DSC_User/Datastream/Calcium/CalciumInterface.hxx b/src/DSC/DSC_User/Datastream/Calcium/CalciumInterface.hxx index 0dac5588a..0238fc126 100644 --- a/src/DSC/DSC_User/Datastream/Calcium/CalciumInterface.hxx +++ b/src/DSC/DSC_User/Datastream/Calcium/CalciumInterface.hxx @@ -42,6 +42,7 @@ #include +//#define _DEBUG_ // Déplacer cette information dans CorbaTypeManipulator // Gérer en même temps la recopie profonde. @@ -576,7 +577,7 @@ ecp_fin_ (void * component, int code) { static_cast(dependencyType), \ _t,i,nomvar,_bufferLength,*data); \ } catch ( const CalciumException & ex) { \ - DEBTRACE( ex.what() ) \ + std::cerr << ex.what() << std::endl; \ return ex.getInfo(); \ } \ DEBTRACE( "-------- CalciumInterface(ecriture Inter Part), Valeur de data : " ) \