summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/DebugPortDxe
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 15:42:40 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-11 15:42:40 +0000
commit1232b21473646661a4ac1ae4b7bf5113d4613e83 (patch)
treed941add025ac902858b1aa8cf38ffaa055baa41b /MdeModulePkg/Universal/DebugPortDxe
parente5dab01618850f8c8be029336ad93dcd1680865f (diff)
downloadedk2-1232b21473646661a4ac1ae4b7bf5113d4613e83.tar.gz
edk2-1232b21473646661a4ac1ae4b7bf5113d4613e83.tar.bz2
edk2-1232b21473646661a4ac1ae4b7bf5113d4613e83.zip
1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
2, Add DevicePathLib library class to module's INF that use device path utility macros git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6456 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DebugPortDxe')
-rw-r--r--MdeModulePkg/Universal/DebugPortDxe/DebugPort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
index 932c772d48..0ddbf1ed2a 100644
--- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
+++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
@@ -73,11 +73,11 @@ GetDebugPortVariable (
DebugPortDevice->DebugPortVariable
);
DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) DebugPortDevice->DebugPortVariable;
- while (!EfiIsDevicePathEnd (DevicePath) && !IS_UART_DEVICEPATH (DevicePath)) {
- DevicePath = EfiNextDevicePathNode (DevicePath);
+ while (!IsDevicePathEnd (DevicePath) && !IS_UART_DEVICEPATH (DevicePath)) {
+ DevicePath = NextDevicePathNode (DevicePath);
}
- if (EfiIsDevicePathEnd (DevicePath)) {
+ if (IsDevicePathEnd (DevicePath)) {
FreePool (gDebugPortDevice->DebugPortVariable);
DebugPortDevice->DebugPortVariable = NULL;
} else {