[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9147 - usrp2/trunk/host-ng/lib
From: |
eb |
Subject: |
[Commit-gnuradio] r9147 - usrp2/trunk/host-ng/lib |
Date: |
Fri, 1 Aug 2008 17:19:36 -0600 (MDT) |
Author: eb
Date: 2008-08-01 17:19:36 -0600 (Fri, 01 Aug 2008)
New Revision: 9147
Modified:
usrp2/trunk/host-ng/lib/usrp2_impl.cc
Log:
debugging
Modified: usrp2/trunk/host-ng/lib/usrp2_impl.cc
===================================================================
--- usrp2/trunk/host-ng/lib/usrp2_impl.cc 2008-08-01 23:11:25 UTC (rev
9146)
+++ usrp2/trunk/host-ng/lib/usrp2_impl.cc 2008-08-01 23:19:36 UTC (rev
9147)
@@ -333,7 +333,7 @@
// FIXME iterate over payload, handling more than a single subpacket.
- //int opcode = p[0];
+ int opcode = p[0];
unsigned int oplen = p[1];
unsigned int rid = p[2];
@@ -341,9 +341,9 @@
if (rp) {
unsigned int buflen = rp->len();
if (oplen != buflen) {
- std::cerr << "usrp2: mismatched command reply length ("
- << oplen << " != " << buflen << ")"
- << std::endl;
+ std::cerr << "usrp2: mismatched command reply length (expected: "
+ << buflen << " got: " << oplen << "). "
+ << "op = " << opcode_to_string(opcode) << std::endl;
}
// Copy reply into caller's buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9147 - usrp2/trunk/host-ng/lib,
eb <=