commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7827 - usrp2/trunk/host/apps


From: matt
Subject: [Commit-gnuradio] r7827 - usrp2/trunk/host/apps
Date: Sun, 24 Feb 2008 17:45:59 -0700 (MST)

Author: matt
Date: 2008-02-24 17:45:59 -0700 (Sun, 24 Feb 2008)
New Revision: 7827

Modified:
   usrp2/trunk/host/apps/rx_streaming_samples.cc
Log:
enhanced debugging to report length and sequence numbers


Modified: usrp2/trunk/host/apps/rx_streaming_samples.cc
===================================================================
--- usrp2/trunk/host/apps/rx_streaming_samples.cc       2008-02-25 00:15:08 UTC 
(rev 7826)
+++ usrp2/trunk/host/apps/rx_streaming_samples.cc       2008-02-25 00:45:59 UTC 
(rev 7827)
@@ -364,12 +364,12 @@
     rb->d_writer->update_write_pointer(n);
     rb->d_not_empty.post();
 
-    if (n != samples_per_frame)
-      ::write(2, "L", 1);
+    if ((n != samples_per_frame)||(pkt.hdrs.thdr.seqno != expected_seqno)) {
+      char mymsg[100];
+      sprintf(mymsg,"L %d, seq %d, expected %d\n",n, 
(pkt.hdrs.thdr.seqno),expected_seqno);
+      ::write(2, mymsg, strlen(mymsg));
+    }
 
-    if (pkt.hdrs.thdr.seqno != expected_seqno)
-      ::write(2, "S", 1);
-
     expected_seqno = (pkt.hdrs.thdr.seqno + 1) & 0xff;
   }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]