debugging

This commit is contained in:
Dhanya Maliakal 2016-11-09 09:36:42 +01:00
parent 7cbd21651b
commit f6b753f5d7

View File

@ -2749,11 +2749,11 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
//Print packet loss //Print packet loss
if(totalWritingPacketCountFromLastCheck[ithread]){ if(totalWritingPacketCountFromLastCheck[ithread]){
if(numberofWriterThreads>1){ if(numberofWriterThreads>1){
printf("\nThread:%d" printf("Thread:%d"
"\tPackets Lost:%d" "\tLost:%d"
"\tPacketsFromLastCheck:%lld" "\tPackets:%lld"
"\tCurrentFrameNumber:%lld" "\tFrame#:%lld"
"\tPreviousFrameNumber:%lld\n", "\tPFrame#r:%lld\n",
ithread, ithread,
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
totalWritingPacketCountFromLastCheck[ithread], totalWritingPacketCountFromLastCheck[ithread],
@ -2761,10 +2761,10 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){
frameNumberInPreviousCheck[ithread] frameNumberInPreviousCheck[ithread]
); );
}else{ }else{
printf("\nPackets Lost:%d" printf("Lost:%d"
"\tPacketsFromLastCheck:%lld" "\tPackets:%lld"
"\tCurrentFrameNumber:%lld" "\tFrame#:%lld"
"\tPreviousFrameNumber:%lld\n", "\tPFrame#:%lld\n",
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
totalWritingPacketCountFromLastCheck[ithread], totalWritingPacketCountFromLastCheck[ithread],
currentFrameNumber[ithread], currentFrameNumber[ithread],
@ -2929,10 +2929,10 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w
//Print packet loss and filenames //Print packet loss and filenames
if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){ if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){
printf("\nPackets Lost:%d" printf("Lost:%d"
"\tPacketsFromLastCheck:%lld" "\tPackets:%lld"
"\tCurrentFrameNumber:%lld" "\tFrame#:%lld"
"\tPreviousFrameNumber:%lld\n", "\tPFrame#:%lld\n",
( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]),
totalWritingPacketCountFromLastCheck[ithread], totalWritingPacketCountFromLastCheck[ithread],
currentFrameNumber[ithread], currentFrameNumber[ithread],