From: Michael Brown Date: Mon, 29 Apr 2013 14:36:32 +0000 (+0100) Subject: [errdb] Strip platform error code for non-platform-generated errors X-Git-Tag: v1.20.1~1522 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1fafd2f80dc9b08304cf5b66d281ef6771b1f9;p=thirdparty%2Fipxe.git [errdb] Strip platform error code for non-platform-generated errors Signed-off-by: Michael Brown --- 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} ||= {};