comparison data/fileio/MatrixFile.cpp @ 687:06f13a3b9e9e debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:09 +0100
parents b4a8d8221eaf
children 1424aa29ae95
comparison
equal deleted inserted replaced
686:b4a8d8221eaf 687:06f13a3b9e9e
66 m_readyToReadColumn(-1) 66 m_readyToReadColumn(-1)
67 { 67 {
68 Profiler profiler("MatrixFile::MatrixFile", true); 68 Profiler profiler("MatrixFile::MatrixFile", true);
69 69
70 #ifdef DEBUG_MATRIX_FILE 70 #ifdef DEBUG_MATRIX_FILE
71 std::cerr << "MatrixFile::MatrixFile(" << fileBase << ", " << int(mode) << ", " << cellSize << ", " << width << ", " << height << ")" << std::endl; 71 DEBUG << "MatrixFile::MatrixFile(" << fileBase << ", " << int(mode) << ", " << cellSize << ", " << width << ", " << height << ")" << endl;
72 #endif 72 #endif
73 73
74 m_createMutex.lock(); 74 m_createMutex.lock();
75 75
76 QDir tempDir(TempDirectory::getInstance()->getPath()); 76 QDir tempDir(TempDirectory::getInstance()->getPath());
246 246
247 void 247 void
248 MatrixFile::close() 248 MatrixFile::close()
249 { 249 {
250 #ifdef DEBUG_MATRIX_FILE 250 #ifdef DEBUG_MATRIX_FILE
251 std::cerr << "MatrixFile::close()" << std::endl; 251 DEBUG << "MatrixFile::close()" << endl;
252 #endif 252 #endif
253 if (m_fd >= 0) { 253 if (m_fd >= 0) {
254 if (::close(m_fd) < 0) { 254 if (::close(m_fd) < 0) {
255 ::perror("MatrixFile::close: close failed"); 255 ::perror("MatrixFile::close: close failed");
256 } 256 }