Fixed if statement

date	2002.01.21.21.16.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:27:43 +00:00
parent 18b96c5aa9
commit cac09ffc91

View File

@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: dbutils - AML debugger utilities
* $Revision: 1.46 $
* $Revision: 1.49 $
*
******************************************************************************/
@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
* Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
* All rights reserved.
*
* 2. License
@ -152,12 +152,9 @@ AcpiDbSetOutputDestination (
AcpiGbl_DbOutputFlags = (UINT8) OutputFlags;
if (OutputFlags & DB_REDIRECTABLE_OUTPUT)
if ((OutputFlags & DB_REDIRECTABLE_OUTPUT) && AcpiGbl_DbOutputToFile)
{
if (AcpiGbl_DbOutputToFile)
{
AcpiDbgLevel = AcpiGbl_DbDebugLevel;
}
AcpiDbgLevel = AcpiGbl_DbDebugLevel;
}
else
{
@ -449,6 +446,9 @@ AcpiDbSecondPassParse (
*
* DESCRIPTION: Lookup a name in the ACPI namespace
*
* Note: Currently begins search from the root. Could be enhanced to use
* the current prefix (scope) node as the search beginning point.
*
******************************************************************************/
ACPI_NAMESPACE_NODE *
@ -471,22 +471,18 @@ AcpiDbLocalNsLookup (
return (NULL);
}
/* Lookup the name */
/* TBD: [Investigate] what scope do we use? */
/* Use the root scope for the start of the search */
/*
* Lookup the name.
* (Uses root node as the search starting point)
*/
Status = AcpiNsLookup (NULL, InternalPath, ACPI_TYPE_ANY, IMODE_EXECUTE,
NS_NO_UPSEARCH | NS_DONT_OPEN_SCOPE, NULL, &Node);
if (ACPI_FAILURE (Status))
{
AcpiOsPrintf ("Could not locate name: %s %s\n", Name, AcpiFormatException (Status));
}
ACPI_MEM_FREE (InternalPath);
return (Node);
}