summaryrefslogtreecommitdiff
path: root/compiler/aslerror.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2009-06-01 21:02:40 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2009-06-01 21:02:40 +0000
commite83ee77d7b009e11006d75946be388f7b99f9990 (patch)
tree73c1236e3073233e35dc547eb58ea55eafda9edc /compiler/aslerror.c
parent7029c194b68de13ac02301d603a5e3c180d220e6 (diff)
Notes
Diffstat (limited to 'compiler/aslerror.c')
-rw-r--r--compiler/aslerror.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/compiler/aslerror.c b/compiler/aslerror.c
index 4d306bc55d10..87300b1529c8 100644
--- a/compiler/aslerror.c
+++ b/compiler/aslerror.c
@@ -2,7 +2,6 @@
/******************************************************************************
*
* Module Name: aslerror - Error handling and statistics
- * $Revision: 1.92 $
*
*****************************************************************************/
@@ -10,7 +9,7 @@
*
* 1. Copyright Notice
*
- * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
+ * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
* All rights reserved.
*
* 2. License
@@ -128,6 +127,26 @@ AeAddToErrorLog (
ASL_ERROR_MSG *Enode);
+void
+AeClearErrorLog (
+ void)
+{
+ ASL_ERROR_MSG *Enode = Gbl_ErrorLog;
+ ASL_ERROR_MSG *Next;
+
+ /* Walk the error node list */
+
+ while (Enode)
+ {
+ Next = Enode->Next;
+ ACPI_FREE (Enode);
+ Enode = Next;
+ }
+
+ Gbl_ErrorLog = NULL;
+}
+
+
/*******************************************************************************
*
* FUNCTION: AeAddToErrorLog
@@ -228,6 +247,11 @@ AePrintException (
FILE *SourceFile;
+ if (Gbl_NoErrors)
+ {
+ return;
+ }
+
/*
* Only listing files have a header, and remarks/optimizations
* are always output
@@ -288,7 +312,8 @@ AePrintException (
if (Actual)
{
fprintf (OutputFile,
- "[*** iASL: Seek error on source code temp file ***]");
+ "[*** iASL: Seek error on source code temp file %s ***]",
+ Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
}
else
{
@@ -296,7 +321,8 @@ AePrintException (
if (!RActual)
{
fprintf (OutputFile,
- "[*** iASL: Read error on source code temp file ***]");
+ "[*** iASL: Read error on source code temp file %s ***]",
+ Gbl_Files[ASL_FILE_SOURCE_OUTPUT].Filename);
}
else while (RActual && SourceByte && (SourceByte != '\n'))