From b01414f5a822d0879aa9eba91541a21e7e501142 Mon Sep 17 00:00:00 2001 From: Robert Moore Date: Fri, 4 Dec 2015 08:21:52 -0800 Subject: [PATCH] Update for output of the Debug Object Improve output for the case of an Index() that refers to a Package element that has not been initialized. --- source/components/executer/exdebug.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/components/executer/exdebug.c b/source/components/executer/exdebug.c index 271995f09..9c2c107ee 100644 --- a/source/components/executer/exdebug.c +++ b/source/components/executer/exdebug.c @@ -393,8 +393,15 @@ AcpiExDoDebugObject ( case ACPI_TYPE_PACKAGE: AcpiOsPrintf ("Package[%u] = ", Value); - AcpiExDoDebugObject (*SourceDesc->Reference.Where, - Level+4, 0); + if (!(*SourceDesc->Reference.Where)) + { + AcpiOsPrintf ("[Uninitialized Package Element]\n"); + } + else + { + AcpiExDoDebugObject (*SourceDesc->Reference.Where, + Level+4, 0); + } break; default: