diff options
author | Erik Kaneda <erik.kaneda@intel.com> | 2020-01-07 13:30:47 -0800 |
---|---|---|
committer | Erik Kaneda <erik.kaneda@intel.com> | 2020-01-07 13:30:47 -0800 |
commit | fd9299a5279cea4f15d8bfe5d72857a3c2dc5149 (patch) | |
tree | ecc9fa5c5212f5a70465c512c34d89ea16952ae3 /source/compiler/aslerror.c | |
parent | d590011704b6a4f8de8c44851c915315435e8518 (diff) | |
download | acpica-fd9299a5279cea4f15d8bfe5d72857a3c2dc5149.tar.gz |
iASL: print extra message inside of suberror nodes
Previous implementation did not print the extra message inside
suberror nodes. This change prints the extra message (if it exists).
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Diffstat (limited to 'source/compiler/aslerror.c')
-rw-r--r-- | source/compiler/aslerror.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c index f6eab921e..df1768d8c 100644 --- a/source/compiler/aslerror.c +++ b/source/compiler/aslerror.c @@ -751,7 +751,14 @@ AePrintSubError ( MainMessage = AeDecodeMessageId (Enode->MessageId); - fprintf (OutputFile, " %s%s", MainMessage, "\n "); + fprintf (OutputFile, " %s", MainMessage); + + if (Enode->Message) + { + fprintf (OutputFile, "(%s)", Enode->Message); + } + + fprintf (OutputFile, "\n "); (void) AePrintErrorSourceLine (OutputFile, Enode, &PrematureEOF, &Total); fprintf (OutputFile, "\n"); } |