aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-20 13:14:06 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-20 13:14:06 -0200
commit842dfad188714eba3611e1faade6804e6a9d7cb7 (patch)
treefcc5611464b9f77515605271b92ad61d5dd82be2
parent61fd7692d41fb5217e93c641af7c1502d3e25183 (diff)
parse_tcpdump_log.pl: remove some leftovers
We're now packing the setup and data flags. Remove the duplicated info that would otherwise just add two inexistent fields when debug == 1. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rwxr-xr-xcontrib/parse_tcpdump_log.pl12
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/parse_tcpdump_log.pl b/contrib/parse_tcpdump_log.pl
index 8a6a8131..33fb50ed 100755
--- a/contrib/parse_tcpdump_log.pl
+++ b/contrib/parse_tcpdump_log.pl
@@ -485,7 +485,7 @@ sub decode_frame($) {
print "\n";
}
- my ($frame_id, $setuprequest, $hasdata, $tsSecHigh, $tsSecLow, $tsUsec);
+ my ($frame_id, $tsSecHigh, $tsSecLow, $tsUsec);
($frame_id, $frame{"Type"}, $frame{"TransferType"},
$frame{"Endpoint"}, $frame{"Device"}, $frame{"BusID"},
@@ -497,16 +497,6 @@ sub decode_frame($) {
for (my $i = 7; $i >= 0; $i--) {
$frame{"ID"} .= sprintf "%02x", ord(substr($frame_id, $i, 1));
}
- if ($setuprequest == 0) {
- $frame{"SetupRequest"} = "present";
- } else {
- $frame{"SetupRequest"} = "not present";
- }
- if ($hasdata == 0) {
- $frame{"HasData"} = "present";
- } else {
- $frame{"HasData"} = "not present";
- }
$frame{"Type"} = chr($frame{"Type"});
$frame{"ArrivalTime"} = sprintf "%d.%06d", $tsSecHigh << 32 | $tsSecLow, $tsUsec;

Privacy Policy