summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg
diff options
context:
space:
mode:
authorWenyi Xie <xiewenyi2@huawei.com>2022-08-03 17:27:22 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-05 13:52:51 +0000
commitc05a218a9758225ddf94eedb365633f2154551da (patch)
treeccc21820683f8d38fd3ea914d4cb5385aa49508b /EmbeddedPkg
parentb5d1dc94d08acf4bb8b95fe50baff3d605714015 (diff)
downloadedk2-c05a218a9758225ddf94eedb365633f2154551da.tar.gz
edk2-c05a218a9758225ddf94eedb365633f2154551da.tar.bz2
edk2-c05a218a9758225ddf94eedb365633f2154551da.zip
EmbeddedPkg/GdbSerialDebugPortLib: fix compile warning
The value of gTimeOut is from PcdGdbMaxPacketRetryCount, and this PCD is UINT32. So change the declaratrion of gTimeOut to UINT32 to fix compile warning. Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r--EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c
index 334eb77607..9f0f437c1d 100644
--- a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c
+++ b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c
@@ -17,7 +17,7 @@
#include <Protocol/DebugPort.h>
EFI_DEBUGPORT_PROTOCOL *gDebugPort = NULL;
-UINTN gTimeOut = 0;
+UINT32 gTimeOut = 0;
/**
The constructor function initializes the UART.