aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 15:48:10 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-11-08 15:48:10 (GMT)
commit6fef78fa00bd91c93d1fefeedfe509a9ef079da1 (patch)
tree0a354c953158790393b103cac25802bf82372e5d
parent5b47eff969f567cd2069a33d16d7d0b413bd3747 (diff)
parse_cx231xx.pl: improve GPIO messages on decoding
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--[-rwxr-xr-x]contrib/cx231xx/parse_cx231xx.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/cx231xx/parse_cx231xx.pl b/contrib/cx231xx/parse_cx231xx.pl
index d85a641..c62a299 100755..100644
--- a/contrib/cx231xx/parse_cx231xx.pl
+++ b/contrib/cx231xx/parse_cx231xx.pl
@@ -88,7 +88,7 @@ sub parse_gpio($$$$$$)
my $wlen = shift;
my $payload = shift;
- my $type = sprintf "Req %d: ", $req;
+ my $type;
if ($req == 8) {
$type .= "GET gpio";
} elsif ($req == 9) {
@@ -101,7 +101,8 @@ sub parse_gpio($$$$$$)
my $gpio_bit = $wvalue << 16 & $windex;
- printf("$type 0x%04x len %d val = %s\n", $gpio_bit, $wlen, $payload);
+ printf("$type: Reqtype %3d Req %3d 0x%04x len %d val = %s\n",
+ $reqtype, $req, $gpio_bit, $wlen, $payload);
}
while (<>) {

Privacy Policy