diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-04-29 15:36:32 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-04-29 15:36:32 +0100 |
commit | de1fafd2f80dc9b08304cf5b66d281ef6771b1f9 (patch) | |
tree | c91af27e371ed5764d923e63624e2b0230d80ec7 /contrib | |
parent | d90fc3156c57ba90156ceb4e33fda4a6a19ca382 (diff) | |
download | ipxe-de1fafd2f80dc9b08304cf5b66d281ef6771b1f9.tar.gz |
[errdb] Strip platform error code for non-platform-generated errors
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/errdb/errdb.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/errdb/errdb.pl b/contrib/errdb/errdb.pl index fc1919f6d..6423d8347 100755 --- a/contrib/errdb/errdb.pl +++ b/contrib/errdb/errdb.pl @@ -73,6 +73,7 @@ my $xrefs = {}; while ( <> ) { chomp; ( my $errno, my $filename, my $line, my $description ) = split ( /\t/ ); + $errno = substr ( $errno, 0, 6 ) unless $errno =~ /^7f/; $errors->{$errno} = $description; $xrefs->{$errno} ||= {}; $xrefs->{$errno}->{$filename} ||= {}; |