summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c')
-rw-r--r--MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c b/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
index 266b25cdcf..4a832b87f1 100644
--- a/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
+++ b/MdePkg/Library/BaseDebugLibSerialPort/DebugLib.c
@@ -140,7 +140,7 @@ DebugAssert (
If Buffer is NULL, then ASSERT().
- If Length is greater than (MAX_ADDRESS ? Buffer + 1), then ASSERT().
+ If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@param Buffer Pointer to the target buffer to be filled with PcdDebugClearMemoryValue.
@param Length Number of bytes in Buffer to fill with zeros PcdDebugClearMemoryValue.