mirror of https://github.com/acidanthera/audk.git
Add debug prompt for showing progress bar.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4765 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c47698067e
commit
0fc824969a
|
@ -832,6 +832,8 @@ Returns:
|
||||||
return EFI_TIMEOUT;
|
return EFI_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEBUG ((EFI_D_INFO, "\n\nStart showing progress bar... Press any key to stop it! ...Zzz....\n"));
|
||||||
|
|
||||||
SetMem (&Foreground, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);
|
SetMem (&Foreground, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);
|
||||||
SetMem (&Background, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0x0);
|
SetMem (&Background, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0x0);
|
||||||
SetMem (&Color, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);
|
SetMem (&Color, sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL), 0xff);
|
||||||
|
@ -846,6 +848,8 @@ Returns:
|
||||||
|
|
||||||
TimeoutRemain = TimeoutDefault;
|
TimeoutRemain = TimeoutDefault;
|
||||||
while (TimeoutRemain != 0) {
|
while (TimeoutRemain != 0) {
|
||||||
|
DEBUG ((EFI_D_INFO, "Showing progress bar...Remaining %d second!\n", TimeoutRemain));
|
||||||
|
|
||||||
Status = WaitForSingleEvent (gST->ConIn->WaitForKey, ONE_SECOND);
|
Status = WaitForSingleEvent (gST->ConIn->WaitForKey, ONE_SECOND);
|
||||||
if (Status != EFI_TIMEOUT) {
|
if (Status != EFI_TIMEOUT) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue