diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-19 15:01:27 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-07-19 15:01:27 +0000 |
commit | 5f4f1334e3337d28e254ec08165954e7cea9448c (patch) | |
tree | 93c2d2bc8fd15f2a6e219b5dc0024b18682a11a2 /ArmPkg | |
parent | 76336e4e2a7ff4c439b2eae08b224aa864f1324c (diff) | |
download | edk2-platforms-5f4f1334e3337d28e254ec08165954e7cea9448c.tar.xz |
ArmPkg/SemiHostingSerialPortLib: Return number of written bytes in SerialPortWrite()
It was previously returning '0' written bytes that was interprating by the higher
layers as a failing operation.
Fix proposed by Eugene Cohen (HP)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12026 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c b/ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c index bd8f5b8199..60d8930d6c 100644 --- a/ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c +++ b/ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c @@ -98,7 +98,7 @@ SerialPortWrite ( SemihostWriteString ((CHAR8 *) PrintBuffer);
}
- return 0;
+ return NumberOfBytes;
}
|