12 my $time = $1 if /(\d+:\d+:\d+)/;
15 if ( /IRP_MJ_WRITE.*:\s*(.*)/ ) {
16 print ">> $time $1\n";
17 } elsif ( /(IRP_MJ_READ|IOCTL_SERIAL_WAIT_ON_MASK)/ ) {
19 print "#[$in_read] $_\n";
20 } elsif ( $in_read && /SUCCESS\s+Length\s+\d+:\s*([0-9a-fA-F\s]+)/ ) {
22 print "#<$in_read $_\n";
23 my $len = hex($1) if ( $read =~ m/^([0-9a-f]{2})/i );
24 print "#< $read [$len]\n";
25 if ( length($read) >= ( $len * 3 - 1 ) ) {
26 print "<< $time $read\n";