]> git.proxmox.com Git - mirror_edk2.git/commit
FmpDevicePkg/FmpDxe: Better warn of potential ImageTypeId misconfig
authorMichael Kubacki <michael.kubacki@microsoft.com>
Thu, 6 Aug 2020 19:05:40 +0000 (12:05 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Aug 2020 02:30:01 +0000 (02:30 +0000)
commitde6859ec0cdbc6f524d2ac4691cb528ff83ed222
treed60a285fd738173280d63181eee4843103de2804
parente4e27351e858b2a520db06398d86f2511fbcefbe
FmpDevicePkg/FmpDxe: Better warn of potential ImageTypeId misconfig

A user may fall through to the case they depend on the
PcdFmpDeviceImageTypeIdGuid value to get the ImageTypeId GUID
value. The default PCD value is 0 (NULL) so the code would
further fall back on the gEfiCallerIdGuid value.

This change modifies the print error level for the message that
indicates this occurred to DEBUG_WARN from DEBUG_INFO to better
warn the user that this occurred.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Wei6 Xu <wei6.xu@intel.com>
FmpDevicePkg/FmpDxe/FmpDxe.c