diff options
Diffstat (limited to 'source/compiler/aslerror.c')
-rw-r--r-- | source/compiler/aslerror.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c index f6eab921e455..1931fffcf123 100644 --- a/source/compiler/aslerror.c +++ b/source/compiler/aslerror.c @@ -8,7 +8,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2020, Intel Corp. * All rights reserved. * * 2. License @@ -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"); } |