From 6551222143e60fee272e03aabf7996a615cd27bf Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 2 Aug 2016 10:32:53 +0300 Subject: [PATCH] Fix for the issue "23310: [CEA 1905] SALOME master - logs kernel debug mode". --- src/Container/Container_i.cxx | 4 ++-- src/Container/SALOME_FileTransfer_i.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.2