2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-03 10:04:36 +00:00

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-04-29 15:36:32 +01:00
parent d90fc3156c
commit de1fafd2f8

View File

@ -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} ||= {};