This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: parse_dib0700.pl: improve parser Author: Mauro Carvalho Chehab <[email protected]> Date: Tue Jun 24 16:34:26 2014 -0300 When using ./parse_tcpdump_log.pl|parse_dib0700.pl, it were not parsing properly. Signed-off-by: Mauro Carvalho Chehab <[email protected]> contrib/dib0700/parse_dib0700.pl | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=8fba7bf71753b26fa6251f100735f679f3b09d90 diff --git a/contrib/dib0700/parse_dib0700.pl b/contrib/dib0700/parse_dib0700.pl index 19db058..9eac312 100755 --- a/contrib/dib0700/parse_dib0700.pl +++ b/contrib/dib0700/parse_dib0700.pl @@ -84,7 +84,8 @@ sub type_req($) while (<>) { tr/A-F/a-f/; - if (m/([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].)[\<\>\s]+(.*)/) { + + if (m/([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].) ([0-9a-f].)\s*[\<\>]+\s*(.*)/) { my $reqtype = hex($1); my $req = hex($2); my $wvalue = hex("$4$3"); @@ -181,7 +182,7 @@ while (<>) { next; } - printf("%s, Req %s, wValue: 0x%04x, wIndex 0x%04x, wlen %d: %s\n", - type_req($reqtype), $req, $wvalue, $windex, $wlen, $payload); + printf("%s(0x%02x), Req %s, wValue: 0x%04x, wIndex 0x%04x, wlen %d: %s\n", + type_req($reqtype), $reqtype, $req, $wvalue, $windex, $wlen, $payload); } } _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
