From: rnv Date: Tue, 2 Aug 2016 07:32:53 +0000 (+0300) Subject: Fix for the issue "23310: [CEA 1905] SALOME master - logs kernel debug mode". X-Git-Tag: V8_1_0b1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6551222143e60fee272e03aabf7996a615cd27bf;p=modules%2Fkernel.git Fix for the issue "23310: [CEA 1905] SALOME master - logs kernel debug mode". --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 31aefcc31..8b14ff9ac 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -1638,10 +1638,10 @@ void Engines_Container_i::copyFile(Engines::Container_ptr container, const char* while (toFollow) { ctr++; - SCRUTE(ctr); + //SCRUTE(ctr); aBlock = fileTransfer->getBlock(fileId); toFollow = aBlock->length(); - SCRUTE(toFollow); + //SCRUTE(toFollow); CORBA::Octet *buf = aBlock->get_buffer(); fwrite(buf, sizeof(CORBA::Octet), toFollow, fp); delete aBlock; diff --git a/src/Container/SALOME_FileTransfer_i.cxx b/src/Container/SALOME_FileTransfer_i.cxx index d379bb2f2..da9b272b7 100644 --- a/src/Container/SALOME_FileTransfer_i.cxx +++ b/src/Container/SALOME_FileTransfer_i.cxx @@ -119,7 +119,7 @@ void fileTransfer_i::close(CORBA::Long fileId) Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId) { - MESSAGE("fileTransfer_i::getBlock"); + //MESSAGE("fileTransfer_i::getBlock"); Engines::fileBlock* aBlock = new Engines::fileBlock; FILE* fp; @@ -135,7 +135,7 @@ Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId) CORBA::Octet *buf; buf = Engines::fileBlock::allocbuf(FILEBLOCK_SIZE); int nbRed = fread(buf, sizeof(CORBA::Octet), FILEBLOCK_SIZE, fp); - SCRUTE(nbRed); + //SCRUTE(nbRed); aBlock->replace(nbRed, nbRed, buf, 1); // 1 means give ownership return aBlock; }