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

Loading…
Cancel
Save