aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 15:41:31 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 15:41:31 (GMT)
commit5b47eff969f567cd2069a33d16d7d0b413bd3747 (patch)
treeae685d2d1e19fd7d1246431c21d9f8aa4594ef8b
parentbaed6b80173c36ab39ca1caf67436909a273e2ca (diff)
Print a generic message for the URB's that aren't currently parsed
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rwxr-xr-xcontrib/cx231xx/parse_cx231xx.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/cx231xx/parse_cx231xx.pl b/contrib/cx231xx/parse_cx231xx.pl
index e6f7905..d85a641 100755
--- a/contrib/cx231xx/parse_cx231xx.pl
+++ b/contrib/cx231xx/parse_cx231xx.pl
@@ -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);
+ }
}
}

Privacy Policy