Print a generic message for the URB's that aren't currently parsed
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Nov 2010 15:41:31 +0000 (13:41 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Nov 2010 15:41:31 +0000 (13:41 -0200)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/cx231xx/parse_cx231xx.pl

index e6f7905..d85a641 100755 (executable)
@@ -118,9 +118,11 @@ while (<>) {
                        parse_i2c($reqtype, $req, $wvalue, $windex, $wlen, $payload);
                } elsif ($req < 3) {
                        parse_i2c($reqtype, $req, $wvalue, $windex, $wlen, $payload);
-               }
-#              if ($req >= 8 && $req <= 0xb) {
+               } elsif ($req >= 8 && $req <= 0xb) {
                        parse_gpio($reqtype, $req, $wvalue, $windex, $wlen, $payload);
-#              }
+               } else {
+                       printf("Reqtype: %3d, Req %3d, wValue: 0x%04x, wIndex 0x%04x, wlen %d: %s\n",
+                               $reqtype, $req, $wvalue, $windex, $wlen, $payload);
+               }
        }
 }