Remove debugging printfs

This commit is contained in:
Keith Winstein
2011-08-12 12:01:51 -04:00
parent 0d19e009a9
commit 221c3af908
-5
View File
@@ -66,7 +66,6 @@ bool FragmentAssembly::add_fragment( Instruction &inst )
/* see if this is a totally new packet */
if ( !same_template( inst, current_template ) ) {
fprintf( stderr, "New template! [%d => %d]\n", (int)inst.old_num, (int)inst.new_num );
fragments.clear();
current_template = inst;
fragments.resize( real_fragment_num + 1 );
@@ -77,13 +76,11 @@ bool FragmentAssembly::add_fragment( Instruction &inst )
/* see if we already have this fragment */
if ( (fragments.size() > real_fragment_num)
&& (fragments.at( real_fragment_num ).old_num != uint64_t(-1)) ) {
fprintf( stderr, "Fragment %d already present.\n", real_fragment_num );
assert( fragments.at( real_fragment_num ) == inst );
} else {
if ( (int)fragments.size() < real_fragment_num + 1 ) {
fragments.resize( real_fragment_num + 1 );
}
fprintf( stderr, "Received fragment %d\n", real_fragment_num );
fragments.at( real_fragment_num ) = inst;
fragments_arrived++;
}
@@ -94,8 +91,6 @@ bool FragmentAssembly::add_fragment( Instruction &inst )
fragments.resize( fragments_total );
}
fprintf( stderr, "arrived = %d, total = %d\n", fragments_arrived, fragments_total );
if ( fragments_arrived == fragments_total ) {
assert( (int)fragments.size() == fragments_total );
for ( unsigned int i = 0; i < fragments.size(); i++ ) {