]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Hand/Handle.c
MdeModulePkg: Enhance the debug message for InstallProtocolInterface
authorStar Zeng <star.zeng@intel.com>
Wed, 21 Jun 2017 05:28:26 +0000 (13:28 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 23 Jun 2017 06:46:41 +0000 (14:46 +0800)
commitc01f13d52a85f097e1cc6b194df1316a3ed24710
tree084181708ca23698f005d4e2bc4b589de90bc57f
parentb243ead0aa6b0ca904a5b3f30d31e2917dda360f
MdeModulePkg: Enhance the debug message for InstallProtocolInterface

Current code is using debug message like below for
InstallProtocolInterface.
InstallProtocolInterface: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX XXX

User could not know whether the installation is failed or not by the
debug message, for example, the code below does not initialize Handle
before calling InstallProtocolInterface, EFI_INVALID_PARAMETER will be
returned.
  EFI_HANDLE Handle;
  Status = gBS->InstallProtocolInterface (
                  &Handle,
                  &XXX,
                  EFI_NATIVE_INTERFACE,
                  XXX
                  );

This patch is to add additional debug message if the installation
is failed and specific debug message for the case that the input
handle is invalid.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Core/Dxe/Hand/Handle.c
MdeModulePkg/Core/PiSmmCore/Handle.c