mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 01:44:33 +03:00
Added PrintPathname debug function
date 2001.11.16.23.35.00; author rmoore1; state Exp;
This commit is contained in:
parent
317b9b67a1
commit
ade2abb5f4
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: nsdump - table dumping routines for debug
|
||||
* $Revision: 1.115 $
|
||||
* $Revision: 1.116 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -129,6 +129,46 @@
|
||||
|
||||
#if defined(ACPI_DEBUG) || defined(ENABLE_DEBUGGER)
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiNsPrintPathname
|
||||
*
|
||||
* PARAMETERS: NumSegment - Number of ACPI name segments
|
||||
* Pathname - The compressed (internal) path
|
||||
*
|
||||
* DESCRIPTION: Print an object's full namespace pathname
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
void
|
||||
AcpiNsPrintPathname (
|
||||
UINT32 NumSegments,
|
||||
char *Pathname)
|
||||
{
|
||||
UINT32 i;
|
||||
|
||||
PROC_NAME ("AcpiNsPrintPathname");
|
||||
|
||||
|
||||
if (!(AcpiDbgLevel & ACPI_LV_NAMES) || !(AcpiDbgLayer & ACPI_NAMESPACE))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Print the entire name */
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "["));
|
||||
|
||||
for (i = 0; i < NumSegments; i++)
|
||||
{
|
||||
AcpiOsPrintf ("%4.4s.", (char *) &Pathname[i * 4]);
|
||||
}
|
||||
|
||||
AcpiOsPrintf ("]\n");
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiNsDumpPathname
|
||||
|
Loading…
x
Reference in New Issue
Block a user