X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FPCD%2FDxe%2FPcd.c;fp=MdeModulePkg%2FUniversal%2FPCD%2FDxe%2FPcd.c;h=c30e9d3b158d851313187912a260e1418e407b0e;hp=ee53ae332b5702dcc12e5f7b5096e45356fede4e;hb=f71503c37c4815caa4c8b7afe53df7c2fc220530;hpb=29c50757873c431c59fa4173f9cfd5c3548a1394 diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c index ee53ae332b..c30e9d3b15 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c @@ -273,10 +273,13 @@ DxePcdSetSku ( UINTN Index; EFI_STATUS Status; + DEBUG ((DEBUG_INFO, "PcdDxe - SkuId 0x%lx is to be set.\n", (SKU_ID) SkuId)); + if (SkuId == mPcdDatabase.DxeDb->SystemSkuId) { // // The input SKU Id is equal to current SKU Id, return directly. // + DEBUG ((DEBUG_INFO, "PcdDxe - SkuId is same to current system Sku.\n")); return; } @@ -295,6 +298,7 @@ DxePcdSetSku ( SkuIdTable = (SKU_ID *) ((UINT8 *) mPcdDatabase.DxeDb + mPcdDatabase.DxeDb->SkuIdTableOffset); for (Index = 0; Index < SkuIdTable[0]; Index++) { if (SkuId == SkuIdTable[Index + 1]) { + DEBUG ((DEBUG_INFO, "PcdDxe - SkuId is found in SkuId table.\n")); Status = UpdatePcdDatabase (SkuId, TRUE); if (!EFI_ERROR (Status)) { mPcdDatabase.DxeDb->SystemSkuId = (SKU_ID) SkuId; @@ -307,7 +311,7 @@ DxePcdSetSku ( // // Invalid input SkuId, the default SKU Id will be still used for the system. // - DEBUG ((DEBUG_INFO, "PcdDxe - Invalid input SkuId, the default SKU Id will be still used.\n")); + DEBUG ((DEBUG_ERROR, "PcdDxe - Invalid input SkuId, the default SKU Id will be still used.\n")); return; }