]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SignedCapsulePkg SystemCapsuleLib: Change some dbg level to DEBUG_INFO
authorStar Zeng <star.zeng@intel.com>
Wed, 28 Mar 2018 08:50:00 +0000 (16:50 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 13 Apr 2018 04:57:10 +0000 (12:57 +0800)
This debug message should be info instead of error. This patch is to
change the debug level to DEBUG_INFO.
DEBUG((DEBUG_ERROR, "checking FV....0x%08x - 0x%x\n",
       FvHeader, FvHeader->FvLength));    // "Mark"

This comment is inaccurate. This patch is to remove it.
//
// Check section
//

This debug message should be removed as FvHeader may have been out of
range FdStart and FdSize, and the loop will go to "Mark" above again if
FvHeader is not out of range FdStart and FdSize, and then that debug
message will be shown. This patch is to remove this debug message.
DEBUG((DEBUG_ERROR, "Next FV....0x%08x - 0x%x\n",
       FvHeader, FvHeader->FvLength));

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c

index 876d2257b36548e1cab08066a194ad9d75b2faf5..5cb97bf931183c813e11d8dc80365ca956a5649c 100644 (file)
@@ -6,7 +6,7 @@
   CapsuleAuthenticateSystemFirmware(), ExtractAuthenticatedImage() will receive\r
   untrusted input and do basic validation.\r
 \r
   CapsuleAuthenticateSystemFirmware(), ExtractAuthenticatedImage() will receive\r
   untrusted input and do basic validation.\r
 \r
-  Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -188,7 +188,7 @@ GetFfsByName (
       FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *)((UINTN)FvHeader + SIZE_4KB);\r
       continue;\r
     }\r
       FvHeader = (EFI_FIRMWARE_VOLUME_HEADER *)((UINTN)FvHeader + SIZE_4KB);\r
       continue;\r
     }\r
-    DEBUG((DEBUG_ERROR, "checking FV....0x%08x - 0x%x\n", FvHeader, FvHeader->FvLength));\r
+    DEBUG((DEBUG_INFO, "checking FV....0x%08x - 0x%x\n", FvHeader, FvHeader->FvLength));\r
     FvFound = TRUE;\r
     if (FvHeader->FvLength > FvSize) {\r
       DEBUG((DEBUG_ERROR, "GetFfsByName - FvSize: 0x%08x, MaxSize - 0x%08x\n", (UINTN)FvHeader->FvLength, (UINTN)FvSize));\r
     FvFound = TRUE;\r
     if (FvHeader->FvLength > FvSize) {\r
       DEBUG((DEBUG_ERROR, "GetFfsByName - FvSize: 0x%08x, MaxSize - 0x%08x\n", (UINTN)FvHeader->FvLength, (UINTN)FvSize));\r
@@ -225,9 +225,6 @@ GetFfsByName (
 \r
       if (CompareGuid(FileName, &FfsHeader->Name) &&\r
           ((Type == EFI_FV_FILETYPE_ALL) || (FfsHeader->Type == Type))) {\r
 \r
       if (CompareGuid(FileName, &FfsHeader->Name) &&\r
           ((Type == EFI_FV_FILETYPE_ALL) || (FfsHeader->Type == Type))) {\r
-        //\r
-        // Check section\r
-        //\r
         *OutFfsBuffer = FfsHeader;\r
         *OutFfsBufferSize = FfsSize;\r
         return TRUE;\r
         *OutFfsBuffer = FfsHeader;\r
         *OutFfsBufferSize = FfsSize;\r
         return TRUE;\r
@@ -248,7 +245,6 @@ GetFfsByName (
     // Next FV\r
     //\r
     FvHeader = (VOID *)(UINTN)((UINTN)FvHeader + FvHeader->FvLength);\r
     // Next FV\r
     //\r
     FvHeader = (VOID *)(UINTN)((UINTN)FvHeader + FvHeader->FvLength);\r
-    DEBUG((DEBUG_ERROR, "Next FV....0x%08x - 0x%x\n", FvHeader, FvHeader->FvLength));\r
   }\r
 \r
   if (!FvFound) {\r
   }\r
 \r
   if (!FvFound) {\r