aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/dev/acpica/compiler/cvdisasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/cvdisasm.c')
-rw-r--r--sys/contrib/dev/acpica/compiler/cvdisasm.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/contrib/dev/acpica/compiler/cvdisasm.c b/sys/contrib/dev/acpica/compiler/cvdisasm.c
index 0ddf2a548584..d20e66ac317e 100644
--- a/sys/contrib/dev/acpica/compiler/cvdisasm.c
+++ b/sys/contrib/dev/acpica/compiler/cvdisasm.c
@@ -314,6 +314,7 @@ CvPrintOneCommentType (
if (*CommentToPrint)
{
+ CommentExists = TRUE;
AcpiOsPrintf ("%s", *CommentToPrint);
*CommentToPrint = NULL;
}
@@ -495,6 +496,7 @@ CvSwitchFiles(
{
char *Filename = Op->Common.CvFilename;
ACPI_FILE_NODE *FNode;
+ ACPI_FILE_NODE *Current;
CvDbgPrint ("Switching from %s to %s\n", AcpiGbl_CurrentFilename, Filename);
FNode = CvFilenameExists (Filename, AcpiGbl_FileTreeRoot);
@@ -509,23 +511,23 @@ CvSwitchFiles(
AslCommonError (ASL_ERROR, ASL_MSG_OPEN, 0, 0, 0, 0, NULL, MsgBuffer);
AslAbort ();
}
+ Current = FNode;
/*
* If the previous file is a descendent of the current file,
* make sure that Include statements from the current file
* to the previous have been emitted.
*/
- while (FNode &&
- FNode->Parent &&
- AcpiUtStricmp (FNode->Filename, AcpiGbl_CurrentFilename))
+ while (Current &&
+ Current->Parent &&
+ AcpiUtStricmp (Current->Filename, AcpiGbl_CurrentFilename))
{
- CvPrintInclude (FNode, Level);
- FNode = FNode->Parent;
+ CvPrintInclude (Current, Level);
+ Current = Current->Parent;
}
- /* Redirect output to the Op->Common.CvFilename */
+ /* Redirect output to Op->Common.CvFilename */
- FNode = CvFilenameExists (Filename, AcpiGbl_FileTreeRoot);
AcpiOsRedirectOutput (FNode->File);
AcpiGbl_CurrentFilename = FNode->Filename;
}