| 1 |
function show() |
| 2 |
{ |
| 3 |
error_count++ |
| 4 |
if (cmd) { |
| 5 |
printf "%s: %s\n", FILENAME, cmd |
| 6 |
cmd = "" |
| 7 |
} |
| 8 |
printf "\t%s\n",$0 |
| 9 |
} |
| 10 |
|
| 11 |
FNR == 1 { |
| 12 |
error_count = 0 |
| 13 |
} |
| 14 |
|
| 15 |
{ $1 = "" } |
| 16 |
|
| 17 |
$2 == "Command:" { |
| 18 |
incmd = 1 |
| 19 |
$2 = "" |
| 20 |
cmd = $0 |
| 21 |
next |
| 22 |
} |
| 23 |
|
| 24 |
incmd { |
| 25 |
if (/Parent PID:/) |
| 26 |
incmd = 0 |
| 27 |
else { |
| 28 |
cmd = (cmd $0) |
| 29 |
next |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
/ERROR SUMMARY:/ && !/: 0 errors from 0 contexts/ && error_count > 0 { |
| 34 |
show() |
| 35 |
} |
| 36 |
|
| 37 |
/definitely lost:/ && !/: 0 bytes in 0 blocks/ { show() } |
| 38 |
|
| 39 |
# /possibly lost:/ && !/: 0 bytes in 0 blocks/ { show() } |
| 40 |
|
| 41 |
# / suppressed:/ && !/: 0 bytes in 0 blocks/ { show() } |
| 42 |
|
| 43 |
/[Ii]nvalid (read|write)/ { show() } |