mirror of
https://github.com/acpica/acpica/
synced 2025-02-26 18:34:17 +03:00
New functions
date 2000.03.21.22.21.00; author rmoore1; state Exp;
This commit is contained in:
parent
cc4d07f1d2
commit
8ccc9a99d8
@ -130,6 +130,38 @@
|
||||
MODULE_NAME ("dbutils");
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: DbSetOutputDestination
|
||||
*
|
||||
* PARAMETERS: Address - Pointer to the buffer
|
||||
*
|
||||
* RETURN: None
|
||||
*
|
||||
* DESCRIPTION: Print a portion of a buffer
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
DbSetOutputDestination (
|
||||
INT32 OutputFlags)
|
||||
{
|
||||
|
||||
Gbl_DbOutputFlags = (UINT8) OutputFlags;
|
||||
|
||||
if (OutputFlags & DB_REDIRECTABLE_OUTPUT)
|
||||
{
|
||||
if (OutputToFile)
|
||||
{
|
||||
DebugLevel = Gbl_DbDebugLevel;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DebugLevel = Gbl_DbConsoleDebugLevel;
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: DbDumpBuffer
|
||||
@ -243,17 +275,34 @@ DbPrepNamestring (
|
||||
char *Name)
|
||||
{
|
||||
|
||||
|
||||
if (!Name)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Convert a leading forward slash to a backslash */
|
||||
|
||||
if (*Name == '/')
|
||||
{
|
||||
*Name = '\\';
|
||||
}
|
||||
|
||||
/* Ignore a leading backslash, this is the root prefix */
|
||||
|
||||
if (*Name == '\\')
|
||||
{
|
||||
*Name++;
|
||||
}
|
||||
|
||||
/* Convert all slash path separators to dots */
|
||||
|
||||
while (*Name)
|
||||
{
|
||||
if ((*Name == '/') ||
|
||||
(*Name == '.'))
|
||||
(*Name == '\\'))
|
||||
{
|
||||
*Name = '\\';
|
||||
*Name = '.';
|
||||
}
|
||||
|
||||
Name++;
|
||||
@ -366,7 +415,7 @@ DbLocalNsLookup (
|
||||
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
OsdPrintf ("Could not locate name: %s %s\n", Name, Gbl_ExceptionNames[Status]);
|
||||
OsdPrintf ("Could not locate name: %s %s\n", Name, CmFormatException (Status));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user