/** @file\r
Dump Capsule image information.\r
\r
- Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
"Error: Auth Error",\r
"Error: Power Event AC",\r
"Error: Power Event Battery",\r
+ "Error: Unsatisfied Dependencies",\r
};\r
\r
/**\r
{\r
EFI_FIRMWARE_IMAGE_DESCRIPTOR *CurrentImageInfo;\r
UINTN Index;\r
+ UINTN Index2;\r
\r
Print(L" DescriptorVersion - 0x%x\n", DescriptorVersion);\r
Print(L" DescriptorCount - 0x%x\n", DescriptorCount);\r
Print(L" LastAttemptVersion - 0x%x\n", CurrentImageInfo->LastAttemptVersion);\r
Print(L" LastAttemptStatus - 0x%x (%a)\n", CurrentImageInfo->LastAttemptStatus, LastAttemptStatusToString(CurrentImageInfo->LastAttemptStatus));\r
Print(L" HardwareInstance - 0x%lx\n", CurrentImageInfo->HardwareInstance);\r
+ if (DescriptorVersion > 3) {\r
+ Print(L" Dependencies - ");\r
+ if (CurrentImageInfo->Dependencies == NULL) {\r
+ Print(L"NULL\n");\r
+ } else {\r
+ Index2 = 0;\r
+ do {\r
+ Print(L"%02x ", CurrentImageInfo->Dependencies->Dependencies[Index2]);\r
+ } while (CurrentImageInfo->Dependencies->Dependencies[Index2 ++] != EFI_FMP_DEP_END);\r
+ Print(L"\n");\r
+ }\r
+ }\r
}\r
}\r
//\r