]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / ArmPkg / Library / SemiHostingSerialPortLib / SerialPortLib.c
index bd8f5b81994c198c911e34e1fc39ac334e76e600..bc4d691523ed9a0137981f6ce5f598aca044e90d 100644 (file)
@@ -2,7 +2,7 @@
   Serial I/O Port library functions with no library constructor/destructor\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -68,7 +68,7 @@ SerialPortWrite (
   while (SourceIndex < NumberOfBytes)\r
   {\r
       CurrentCharacter = Buffer[SourceIndex++];\r
-      \r
+\r
       switch (CurrentCharacter)\r
       {\r
       case '\r':\r
@@ -91,14 +91,14 @@ SerialPortWrite (
           DestinationIndex = 0;\r
       }\r
   }\r
-  \r
+\r
   if (DestinationIndex > 0)\r
   {\r
       PrintBuffer[DestinationIndex] = '\0';\r
       SemihostWriteString ((CHAR8 *) PrintBuffer);\r
   }\r
 \r
-  return 0;\r
+  return NumberOfBytes;\r
 }\r
 \r
 \r