summaryrefslogtreecommitdiffstats
path: root/FmpDevicePkg/FmpDxe/FmpDxe.h
diff options
context:
space:
mode:
authorEric Jin <eric.jin@intel.com>2019-07-26 15:34:31 +0800
committerLiming Gao <liming.gao@intel.com>2019-08-15 17:22:24 +0800
commite0961677d1b226c11fc39de4df2c2ecd0e7b9adc (patch)
tree6b07bfc66e645fa9f40c60014ba464b857015b06 /FmpDevicePkg/FmpDxe/FmpDxe.h
parentc40f7cc7fd75e5fff9915ceedb1c10584c98e581 (diff)
downloadedk2-e0961677d1b226c11fc39de4df2c2ecd0e7b9adc.tar.gz
edk2-e0961677d1b226c11fc39de4df2c2ecd0e7b9adc.tar.bz2
edk2-e0961677d1b226c11fc39de4df2c2ecd0e7b9adc.zip
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. https://github.com/microsoft/mu_tiano_plus/commit/a2c7da88d3a73dbe9b6b75952d6866179c905f28#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>
Diffstat (limited to 'FmpDevicePkg/FmpDxe/FmpDxe.h')
-rw-r--r--FmpDevicePkg/FmpDxe/FmpDxe.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/FmpDevicePkg/FmpDxe/FmpDxe.h b/FmpDevicePkg/FmpDxe/FmpDxe.h
index 06514c67c8..28bfa41580 100644
--- a/FmpDevicePkg/FmpDxe/FmpDxe.h
+++ b/FmpDevicePkg/FmpDxe/FmpDxe.h
@@ -17,6 +17,8 @@
#include <Library/DebugLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
+#include <Library/BaseCryptLib.h>
+#include <Library/PcdLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
@@ -71,6 +73,11 @@ typedef struct {
#define FIRMWARE_MANAGEMENT_PRIVATE_DATA_FROM_THIS(a) \
CR (a, FIRMWARE_MANAGEMENT_PRIVATE_DATA, Fmp, FIRMWARE_MANAGEMENT_PRIVATE_DATA_SIGNATURE)
+///
+/// Null-terminated Unicode string retrieved from PcdFmpDeviceImageIdName.
+///
+extern CHAR16 *mImageIdName;
+
/**
Check to see if any of the keys in PcdFmpDevicePkcs7CertBufferXdr matches
the test key. PcdFmpDeviceTestKeySha256Digest contains the SHA256 hash of