@@ -335,10 +335,10 @@ void Chunker::fixSizeChunking()
335335 if (setJobDoneFlag () == false ) {
336336 cerr << " Chunker : set chunking done flag error" << endl;
337337 }
338- cout << " Chunker : Fixed chunking over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
338+ cerr << " Chunker : Fixed chunking over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
339339#if BREAK_DOWN_DEFINE == 1
340- cout << " Chunker : total chunking time = " << chunkTime << " s" << endl;
341- cout << " Chunker : total hashing time = " << hashTime << " s" << endl;
340+ cerr << " Chunker : total chunking time = " << chunkTime << " s" << endl;
341+ cerr << " Chunker : total hashing time = " << hashTime << " s" << endl;
342342#endif
343343}
344344
@@ -424,10 +424,10 @@ void Chunker::traceDrivenChunkingFSL()
424424 if (setJobDoneFlag () == false ) {
425425 cerr << " Chunker : set chunking done flag error" << endl;
426426 }
427- cout << " Chunker : trace gen over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
427+ cerr << " Chunker : trace gen over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
428428#if BREAK_DOWN_DEFINE == 1
429- cout << " Chunker : total chunking time = " << chunkTime << " s" << endl;
430- cout << " Chunker : total hashing time = " << hashTime << " s" << endl;
429+ cerr << " Chunker : total chunking time = " << chunkTime << " s" << endl;
430+ cerr << " Chunker : total hashing time = " << hashTime << " s" << endl;
431431#endif
432432}
433433
@@ -514,10 +514,10 @@ void Chunker::traceDrivenChunkingUBC()
514514 if (setJobDoneFlag () == false ) {
515515 cerr << " Chunker : set chunking done flag error" << endl;
516516 }
517- cout << " Chunker : trace gen over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
517+ cerr << " Chunker : trace gen over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
518518#if BREAK_DOWN_DEFINE == 1
519- cout << " Chunker : total chunking time is" << chunkTime << " s" << endl;
520- cout << " Chunker : total hashing time is" << hashTime << " s" << endl;
519+ cerr << " Chunker : total chunking time is" << chunkTime << " s" << endl;
520+ cerr << " Chunker : total hashing time is" << hashTime << " s" << endl;
521521#endif
522522}
523523
@@ -690,13 +690,13 @@ void Chunker::varSizeChunking()
690690 cerr << " Chunker: set chunking done flag error" << endl;
691691 return ;
692692 }
693- cout << " Chunker : variable size chunking over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
693+ cerr << " Chunker : variable size chunking over:\n Total file size = " << fileRecipe.recipe .fileRecipeHead .fileSize << " ; Total chunk number = " << fileRecipe.recipe .fileRecipeHead .totalChunkNumber << endl;
694694#if BREAK_DOWN_DEFINE == 1
695695 gettimeofday (&timeendChunker, NULL );
696696 diff = 1000000 * (timeendChunker.tv_sec - timestartChunker.tv_sec ) + timeendChunker.tv_usec - timestartChunker.tv_usec ;
697697 second = diff / 1000000.0 ;
698- cout << " Chunker : total chunking time = " << setbase (10 ) << second - (insertTime + hashTime) << " s" << endl;
699- cout << " Chunker : total hashing time = " << hashTime << " s" << endl;
698+ cerr << " Chunker : total chunking time = " << setbase (10 ) << second - (insertTime + hashTime) << " s" << endl;
699+ cerr << " Chunker : total hashing time = " << hashTime << " s" << endl;
700700#endif
701701 return ;
702702}
0 commit comments