Re: [edk2] [PATCH 6/9] MdeModulePkg/BdsDxe: Eliminate non-countdown messages

2016-03-04 Thread Bjorge, Erik C
Reviewed-by: Erik Bjorge 

> -Original Message-
> From: Leahy, Leroy P
> Sent: Friday, March 4, 2016 9:01 AM
> To: Tian, Feng ; Zeng, Star ;
> edk2-devel@lists.01.org; Bjorge, Erik C 
> Cc: Leahy, Leroy P 
> Subject: [PATCH 6/9] MdeModulePkg/BdsDxe: Eliminate non-countdown
> messages
> 
> Eliminate the message every one second when the timeout is specified
> as infinite (0x).
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Lee Leahy 
> ---
>  MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> index 3734ff9..dbe2cd6 100644
> --- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> +++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
> @@ -233,7 +233,9 @@ BdsWait (
> 
>TimeoutRemain = PcdGet16 (PcdPlatformBootTimeOut);
>while (TimeoutRemain != 0) {
> -DEBUG ((EFI_D_INFO, "[Bds]BdsWait(%d)..Zzzz...\n", (UINTN)
> TimeoutRemain));
> +if (TimeoutRemain != 0x) {
> +  DEBUG ((EFI_D_INFO, "[Bds]BdsWait(%d)..Zzzz...\n", (UINTN)
> TimeoutRemain));
> +}
>  PlatformBootManagerWaitCallback (TimeoutRemain);
> 
>  BdsReadKeys (); // BUGBUG: Only reading can signal HotkeyTriggered
> --
> 1.9.1

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


[edk2] [PATCH 6/9] MdeModulePkg/BdsDxe: Eliminate non-countdown messages

2016-03-04 Thread Lee Leahy
Eliminate the message every one second when the timeout is specified
as infinite (0x).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy 
---
 MdeModulePkg/Universal/BdsDxe/BdsEntry.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c 
b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
index 3734ff9..dbe2cd6 100644
--- a/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
+++ b/MdeModulePkg/Universal/BdsDxe/BdsEntry.c
@@ -233,7 +233,9 @@ BdsWait (
 
   TimeoutRemain = PcdGet16 (PcdPlatformBootTimeOut);
   while (TimeoutRemain != 0) {
-DEBUG ((EFI_D_INFO, "[Bds]BdsWait(%d)..Zzzz...\n", (UINTN) TimeoutRemain));
+if (TimeoutRemain != 0x) {
+  DEBUG ((EFI_D_INFO, "[Bds]BdsWait(%d)..Zzzz...\n", (UINTN) 
TimeoutRemain));
+}
 PlatformBootManagerWaitCallback (TimeoutRemain);
 
 BdsReadKeys (); // BUGBUG: Only reading can signal HotkeyTriggered
-- 
1.9.1

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