Changeset 9147

Show
Ignore:
Timestamp:
08/01/08 17:19:36
Author:
eb
Message:

debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • usrp2/trunk/host-ng/lib/usrp2_impl.cc

    r9142 r9147  
    334334    // FIXME iterate over payload, handling more than a single subpacket. 
    335335     
    336     //int opcode = p[0]; 
     336    int opcode = p[0]; 
    337337    unsigned int oplen = p[1]; 
    338338    unsigned int rid = p[2]; 
     
    342342      unsigned int buflen = rp->len(); 
    343343      if (oplen != buflen) { 
    344         std::cerr << "usrp2: mismatched command reply length (
    345                   << oplen << " != " << buflen << ")
    346                   << std::endl; 
     344        std::cerr << "usrp2: mismatched command reply length (expected:
     345                  << buflen << " got: " << oplen << ").
     346                  << "op = " << opcode_to_string(opcode) << std::endl; 
    347347      }      
    348348