From f6b753f5d79630521d210ad776d32137c540dfb4 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Wed, 9 Nov 2016 09:36:42 +0100 Subject: [PATCH] debugging --- .../src/UDPStandardImplementation.cpp | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/slsReceiverSoftware/src/UDPStandardImplementation.cpp b/slsReceiverSoftware/src/UDPStandardImplementation.cpp index 2e57f1e16..3ed0b4fd4 100644 --- a/slsReceiverSoftware/src/UDPStandardImplementation.cpp +++ b/slsReceiverSoftware/src/UDPStandardImplementation.cpp @@ -2749,11 +2749,11 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){ //Print packet loss if(totalWritingPacketCountFromLastCheck[ithread]){ if(numberofWriterThreads>1){ - printf("\nThread:%d" - "\tPackets Lost:%d" - "\tPacketsFromLastCheck:%lld" - "\tCurrentFrameNumber:%lld" - "\tPreviousFrameNumber:%lld\n", + printf("Thread:%d" + "\tLost:%d" + "\tPackets:%lld" + "\tFrame#:%lld" + "\tPFrame#r:%lld\n", ithread, ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), totalWritingPacketCountFromLastCheck[ithread], @@ -2761,10 +2761,10 @@ void UDPStandardImplementation::stopWriting(int ithread, char* wbuffer){ frameNumberInPreviousCheck[ithread] ); }else{ - printf("\nPackets Lost:%d" - "\tPacketsFromLastCheck:%lld" - "\tCurrentFrameNumber:%lld" - "\tPreviousFrameNumber:%lld\n", + printf("Lost:%d" + "\tPackets:%lld" + "\tFrame#:%lld" + "\tPFrame#:%lld\n", ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), totalWritingPacketCountFromLastCheck[ithread], currentFrameNumber[ithread], @@ -2929,10 +2929,10 @@ void UDPStandardImplementation::handleWithoutMissingPackets(int ithread, char* w //Print packet loss and filenames if(tempframenumber && (tempframenumber%(maxFramesPerFile/10)) == 0){ - printf("\nPackets Lost:%d" - "\tPacketsFromLastCheck:%lld" - "\tCurrentFrameNumber:%lld" - "\tPreviousFrameNumber:%lld\n", + printf("Lost:%d" + "\tPackets:%lld" + "\tFrame#:%lld" + "\tPFrame#:%lld\n", ( ((int)(currentFrameNumber[ithread]-frameNumberInPreviousCheck[ithread])*packetsPerFrame) - totalWritingPacketCountFromLastCheck[ithread]), totalWritingPacketCountFromLastCheck[ithread], currentFrameNumber[ithread],