Re: [edk2] [patch] MdeModulePkg:SetupBrowser output debug message when DisplayEngineDxe is not installed

2015-07-27 Thread Gao, Liming
Reviewed-by: Liming Gao liming@intel.com

-Original Message-
From: Bi, Dandan 
Sent: Friday, July 24, 2015 2:32 PM
To: Dong, Eric; Gao, Liming; edk2-devel@lists.01.org
Subject: [patch] MdeModulePkg:SetupBrowser output debug message when 
DisplayEngineDxe is not installed

Enhance the setupbrowserdxe to output debug message when DisplayEngineDxe is 
not installed and this will be easy for user to find the reason why can not 
enter Setup page.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi dandan...@intel.com
---
 MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c 
b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index fb707f0..5793962 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -487,10 +487,11 @@ SendForm (
 
   //
   // If EDKII_FORM_DISPLAY_ENGINE_PROTOCOL not found, return EFI_UNSUPPORTED.
   //
   if (mFormDisplay == NULL) {
+DEBUG ((DEBUG_ERROR, Fatal Error! 
+ EDKII_FORM_DISPLAY_ENGINE_PROTOCOL not found!));
 return EFI_UNSUPPORTED;
   }
 
   //
   // Save globals used by SendForm()
--
1.9.5.msysgit.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] [patch] MdeModulePkg:SetupBrowser output debug message when DisplayEngineDxe is not installed

2015-07-24 Thread Dandan Bi
Enhance the setupbrowserdxe to output debug message when DisplayEngineDxe is
not installed and this will be easy for user to find the reason why can not
enter Setup page.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi dandan...@intel.com
---
 MdeModulePkg/Universal/SetupBrowserDxe/Setup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c 
b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index fb707f0..5793962 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -487,10 +487,11 @@ SendForm (
 
   //
   // If EDKII_FORM_DISPLAY_ENGINE_PROTOCOL not found, return EFI_UNSUPPORTED.
   //
   if (mFormDisplay == NULL) {
+DEBUG ((DEBUG_ERROR, Fatal Error! EDKII_FORM_DISPLAY_ENGINE_PROTOCOL not 
found!));
 return EFI_UNSUPPORTED;
   }
 
   //
   // Save globals used by SendForm()
-- 
1.9.5.msysgit.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel