From 6fef78fa00bd91c93d1fefeedfe509a9ef079da1 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 8 Nov 2010 13:48:10 -0200 Subject: [PATCH] parse_cx231xx.pl: improve GPIO messages on decoding Signed-off-by: Mauro Carvalho Chehab --- contrib/cx231xx/parse_cx231xx.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100755 => 100644 contrib/cx231xx/parse_cx231xx.pl 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 (<>) { -- 2.7.4