summaryrefslogtreecommitdiff
path: root/source/compiler/aslerror.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-01-10 18:46:46 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-01-10 18:46:46 +0000
commit8bf5cb5c35eaf503e388d960914add6a539c1e06 (patch)
tree2e9b847e66808dd777afd6bbe9af1e2248e9d934 /source/compiler/aslerror.c
parent856462eaaec9052a60d62b66076257e7fad337c7 (diff)
Notes
Diffstat (limited to 'source/compiler/aslerror.c')
-rw-r--r--source/compiler/aslerror.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/compiler/aslerror.c b/source/compiler/aslerror.c
index f6eab921e455d..1931fffcf1233 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");
}