From de1fafd2f80dc9b08304cf5b66d281ef6771b1f9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 29 Apr 2013 15:36:32 +0100 Subject: [PATCH] [errdb] Strip platform error code for non-platform-generated errors Signed-off-by: Michael Brown --- contrib/errdb/errdb.pl | 1 + 1 file changed, 1 insertion(+) 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} ||= {};