Date:2011-10-11 17:14:45 (7 years 8 months ago)
Author:Werner Almesberger
Commit:b012a1aa6ddaa6341e7096bf4234a1f46b8a90a0
Message:m1rc3/norruption/2/collda: report collateral damage in non-standby partitions

Files: m1rc3/norruption/2/collda (1 diff)

Change Details

m1rc3/norruption/2/collda
1#!/usr/bin/perl
2while (<>) {
3    if (/^=== (\d+) ==/) {
4        $c = $1;
5        next;
6    }
7    next unless /Checking : (\S+)\s+CRC failed.* got (\S+)\)/;
8    $n++;
9    $c{$n} = $c;
10    next if $1 eq "standby.fpg";
11    next if $last{$1} eq $2;
12    if (defined $h{$n}) {
13        $h{$n} .= ", ".$1;
14    } else {
15        $h{$n} = $1;
16    }
17    $last{$1} = $2;
18}
19
20for (sort { $a <=> $b } keys %h) {
21    print "$_ ($c{$_}): ", $h{$_}, "\n";
22}

Archive Download the corresponding diff file

Branches:
master



interactive