浏览代码

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年前
父节点
当前提交
de1fafd2f8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      contrib/errdb/errdb.pl

+ 1
- 0
contrib/errdb/errdb.pl 查看文件

@@ -73,6 +73,7 @@ my $xrefs = {};
73 73
 while ( <> ) {
74 74
   chomp;
75 75
   ( my $errno, my $filename, my $line, my $description ) = split ( /\t/ );
76
+  $errno = substr ( $errno, 0, 6 ) unless $errno =~ /^7f/;
76 77
   $errors->{$errno} = $description;
77 78
   $xrefs->{$errno} ||= {};
78 79
   $xrefs->{$errno}->{$filename} ||= {};

正在加载...
取消
保存