]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[errdb] Strip platform error code for non-platform-generated errors
authorMichael Brown <mcb30@ipxe.org>
Mon, 29 Apr 2013 14:36:32 +0000 (15:36 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 29 Apr 2013 14:36:32 +0000 (15:36 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
contrib/errdb/errdb.pl

index fc1919f6dae8860a6e93a9b57dc40226ceb7f74f..6423d83476c56900ce48e7a2d349cfaf881fd747 100755 (executable)
@@ -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} ||= {};