diff options
author | Erik Schmauss <erik.schmauss@intel.com> | 2019-04-04 19:23:08 -0700 |
---|---|---|
committer | Erik Schmauss <erik.schmauss@intel.com> | 2019-04-04 19:23:08 -0700 |
commit | 1eb3ee94b6ab2e231a5f7cdf7ca6388ff886c031 (patch) | |
tree | 270c71eacb2f94178a87422143c31c7cf3304042 /source/compiler/aslerror.c | |
parent | 40d879fa54fe6db47ed7d1ac4b2767ff9ec1685c (diff) | |
download | acpica-1eb3ee94b6ab2e231a5f7cdf7ca6388ff886c031.tar.gz |
iASL: use .src file handle only for include file error messages
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Diffstat (limited to 'source/compiler/aslerror.c')
-rw-r--r-- | source/compiler/aslerror.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c index ae1f38acf..db6d871de 100644 --- a/source/compiler/aslerror.c +++ b/source/compiler/aslerror.c @@ -869,8 +869,16 @@ static void AslInitEnode ( return; } - Enode->SourceFilename = - FileNode->Files[ASL_FILE_SOURCE_OUTPUT].Filename; + if (!FlInputFileExists (Filename)) + { + /* + * This means that this file is an include file. Record the .src + * file as the error message source because this file is not in + * the global file list. + */ + Enode->SourceFilename = + FileNode->Files[ASL_FILE_SOURCE_OUTPUT].Filename; + } } } |