Author: tkreuzer Date: Sun Apr 6 08:55:44 2014 New Revision: 62642 URL: http://svn.reactos.org/svn/reactos?rev=62642&view=rev Log: [ACPI] Add some DPRINTs on failure
Modified: trunk/reactos/drivers/bus/acpi/main.c Modified: trunk/reactos/drivers/bus/acpi/main.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/main.c?rev=62642&r1=62641&r2=62642&view=diff ============================================================================== --- trunk/reactos/drivers/bus/acpi/main.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/acpi/main.c [iso-8859-1] Sun Apr 6 08:55:44 2014 @@ -465,7 +465,10 @@ KEY_READ, &ProcessorHandle); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to open CentralProcessor registry key: 0x%lx\n", Status); + goto done; + } /* Query the processor identifier length */ Status = AcpiRegQueryValue(ProcessorHandle, @@ -474,7 +477,10 @@ NULL, &Length); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to query Identifier value: 0x%lx\n", Status); + goto done; + } /* Remember the length as fallback for level 1-3 length */ Level1Length = Level2Length = Level3Length = Length; @@ -484,6 +490,7 @@ ProcessorIdentifier = ExAllocatePoolWithTag(PagedPool, Length, 'IPCA'); if (ProcessorIdentifier == NULL) { + DPRINT1("Failed to allocate 0x%lx bytes\n", Length); Status = STATUS_INSUFFICIENT_RESOURCES; goto done; } @@ -495,7 +502,10 @@ ProcessorIdentifier, &Length); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to query Identifier value: 0x%lx\n", Status); + goto done; + } /* Query the processor name length */ Length = 0; @@ -505,13 +515,17 @@ NULL, &Length); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to query ProcessorNameString value: 0x%lx\n", Status); + goto done; + } /* Allocate a buffer large enough to be zero terminated */ Length += sizeof(UNICODE_NULL); ProcessorNameString = ExAllocatePoolWithTag(PagedPool, Length, 'IPCA'); if (ProcessorNameString == NULL) { + DPRINT1("Failed to allocate 0x%lx bytes\n", Length); Status = STATUS_INSUFFICIENT_RESOURCES; goto done; } @@ -523,7 +537,10 @@ ProcessorNameString, &Length); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to query ProcessorNameString value: 0x%lx\n", Status); + goto done; + } /* Query the vendor identifier length */ Length = 0; @@ -533,13 +550,17 @@ NULL, &Length); if (!NT_SUCCESS(Status) || (Length == 0)) - goto done; + { + DPRINT1("Failed to query VendorIdentifier value: 0x%lx\n", Status); + goto done; + } /* Allocate a buffer large enough to be zero terminated */ Length += sizeof(UNICODE_NULL); ProcessorVendorIdentifier = ExAllocatePoolWithTag(PagedPool, Length, 'IPCA'); if (ProcessorVendorIdentifier == NULL) { + DPRINT1("Failed to allocate 0x%lx bytes\n", Length); Status = STATUS_INSUFFICIENT_RESOURCES; goto done; } @@ -551,7 +572,10 @@ ProcessorVendorIdentifier, &Length); if (!NT_SUCCESS(Status)) - goto done; + { + DPRINT1("Failed to query VendorIdentifier value: 0x%lx\n", Status); + goto done; + } /* Change spaces to underscores */ for (i = 0; i < wcslen(ProcessorIdentifier); i++)