From: Mauro Carvalho Chehab Date: Mon, 8 Nov 2010 15:48:10 +0000 (-0200) Subject: parse_cx231xx.pl: improve GPIO messages on decoding X-Git-Tag: v4l-utils-0.8.2~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fef78fa00bd91c93d1fefeedfe509a9ef079da1;p=platform%2Fupstream%2Fv4l-utils.git parse_cx231xx.pl: improve GPIO messages on decoding Signed-off-by: Mauro Carvalho Chehab --- diff --git a/contrib/cx231xx/parse_cx231xx.pl b/contrib/cx231xx/parse_cx231xx.pl old mode 100755 new mode 100644 index d85a641..c62a299 --- 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 (<>) {