The "read" word in SerialPortWrite() header comment block should be
"write".

Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <liming....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.z...@intel.com>
---
 MdePkg/Include/Library/SerialPortLib.h                       | 4 ++--
 MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MdePkg/Include/Library/SerialPortLib.h 
b/MdePkg/Include/Library/SerialPortLib.h
index 8f95786..1b129a7 100644
--- a/MdePkg/Include/Library/SerialPortLib.h
+++ b/MdePkg/Include/Library/SerialPortLib.h
@@ -1,7 +1,7 @@
 /** @file
   This library class provides common serial I/O port functions.
 
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -46,7 +46,7 @@ SerialPortInitialize (
 
   @retval 0                NumberOfBytes is 0.
   @retval >0               The number of bytes written to the serial device.  
-                           If this value is less than NumberOfBytes, then the 
read operation failed.
+                           If this value is less than NumberOfBytes, then the 
write operation failed.
 
 **/
 UINTN
diff --git a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c 
b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
index d44fa52..6984c8b 100644
--- a/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
+++ b/MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.c
@@ -50,7 +50,7 @@ SerialPortInitialize (
 
   @retval 0                NumberOfBytes is 0.
   @retval >0               The number of bytes written to the serial device.  
-                           If this value is less than NumberOfBytes, then the 
read operation failed.
+                           If this value is less than NumberOfBytes, then the 
write operation failed.
 
 **/
 UINTN
-- 
1.9.5.msysgit.0

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

Reply via email to