summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMichael Brown2013-04-29 16:36:32 +0200
committerMichael Brown2013-04-29 16:36:32 +0200
commitde1fafd2f80dc9b08304cf5b66d281ef6771b1f9 (patch)
treec91af27e371ed5764d923e63624e2b0230d80ec7 /contrib
parent[realtek] Use ID word to detect EEPROM presence (diff)
downloadipxe-de1fafd2f80dc9b08304cf5b66d281ef6771b1f9.tar.gz
ipxe-de1fafd2f80dc9b08304cf5b66d281ef6771b1f9.tar.xz
ipxe-de1fafd2f80dc9b08304cf5b66d281ef6771b1f9.zip
[errdb] Strip platform error code for non-platform-generated errors
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/errdb/errdb.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/errdb/errdb.pl b/contrib/errdb/errdb.pl
index fc1919f6..6423d834 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} ||= {};