servlib/bundling/BPQBlock.cc
changeset 41 dff653fd2b4f
parent 40 c592e9b12a86
child 42 6e7559bfcb52
equal deleted inserted replaced
40:c592e9b12a86 41:dff653fd2b4f
   189  
   189  
   190 /////////////////////////////////////////////////////
   190 /////////////////////////////////////////////////////
   191     ASSERT ( block != NULL );
   191     ASSERT ( block != NULL );
   192     ASSERT ( block->data() != NULL );
   192     ASSERT ( block->data() != NULL );
   193     // BPQ Kind must be 0 or 1
   193     // BPQ Kind must be 0 or 1
   194     ASSERT ( *(block->data()) == 0 ||
   194     if ( *(block->data()) != 0 &&
   195              *(block->data()) == 1 ); 
   195          *(block->data()) != 1 ) {
       
   196         log_err_p(LOG, "BPQBlock::initialise: block->data() = %c(should be 0|1)",
       
   197             *(block->data()));
       
   198     }
   196 
   199 
   197     log_debug_p(LOG, "BPQBlock::initialise: block != NULL");
   200     log_debug_p(LOG, "BPQBlock::initialise: block != NULL");
   198     log_debug_p(LOG, "BPQBlock::initialise: block->data() != NULL"); 
   201     log_debug_p(LOG, "BPQBlock::initialise: block->data() != NULL"); 
   199 
   202 
   200     log_debug_p(LOG, "BPQBlock::initialise: data_length() = %d", block->data_length());
   203     log_debug_p(LOG, "BPQBlock::initialise: data_length() = %d", block->data_length());