소스 검색

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

Loading…
취소
저장