FmpDevicePkg/FmpDxe: Improve all DEBUG() messages
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Update all DEBUG() messages to include the name of the
FMP device from PcdFmpDeviceImageIdName.
Based on content from the following commit, but expanded
to cover all DEBUG() messages.
a2c7da88d3 (diff-025d4889f6d3a482b49638a25e432d6d)
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Eric Jin <eric.jin@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
/** @file
|
||||
Detects if PcdFmpDevicePkcs7CertBufferXdr contains a test key.
|
||||
|
||||
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#include <PiDxe.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/BaseCryptLib.h>
|
||||
#include "FmpDxe.h"
|
||||
|
||||
/**
|
||||
Check to see if any of the keys in PcdFmpDevicePkcs7CertBufferXdr matches
|
||||
@@ -39,7 +33,7 @@ DetectTestKey (
|
||||
UINTN TestKeyDigestSize;
|
||||
|
||||
//
|
||||
// If PcdFmpDeviceTestKeySha256Digest is not exacty SHA256_DIGEST_SIZE bytes,
|
||||
// If PcdFmpDeviceTestKeySha256Digest is not exactly SHA256_DIGEST_SIZE bytes,
|
||||
// then skip the test key detection.
|
||||
//
|
||||
TestKeyDigestSize = PcdGetSize (PcdFmpDeviceTestKeySha256Digest);
|
||||
@@ -143,9 +137,9 @@ DetectTestKey (
|
||||
// set PcdTestKeyUsed to TRUE.
|
||||
//
|
||||
if (TestKeyUsed) {
|
||||
DEBUG ((DEBUG_INFO, "FmpDxe: Test key detected in PcdFmpDevicePkcs7CertBufferXdr.\n"));
|
||||
DEBUG ((DEBUG_INFO, "FmpDxe(%s): Test key detected in PcdFmpDevicePkcs7CertBufferXdr.\n", mImageIdName));
|
||||
PcdSetBoolS (PcdTestKeyUsed, TRUE);
|
||||
} else {
|
||||
DEBUG ((DEBUG_INFO, "FmpDxe: No test key detected in PcdFmpDevicePkcs7CertBufferXdr.\n"));
|
||||
DEBUG ((DEBUG_INFO, "FmpDxe(%s): No test key detected in PcdFmpDevicePkcs7CertBufferXdr.\n", mImageIdName));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user