Browse Source

[errdb] Strip platform error code for non-platform-generated errors

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
de1fafd2f8
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      contrib/errdb/errdb.pl

+ 1
- 0
contrib/errdb/errdb.pl View File

73
 while ( <> ) {
73
 while ( <> ) {
74
   chomp;
74
   chomp;
75
   ( my $errno, my $filename, my $line, my $description ) = split ( /\t/ );
75
   ( my $errno, my $filename, my $line, my $description ) = split ( /\t/ );
76
+  $errno = substr ( $errno, 0, 6 ) unless $errno =~ /^7f/;
76
   $errors->{$errno} = $description;
77
   $errors->{$errno} = $description;
77
   $xrefs->{$errno} ||= {};
78
   $xrefs->{$errno} ||= {};
78
   $xrefs->{$errno}->{$filename} ||= {};
79
   $xrefs->{$errno}->{$filename} ||= {};

Loading…
Cancel
Save