From 5f4f1334e3337d28e254ec08165954e7cea9448c Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Tue, 19 Jul 2011 15:01:27 +0000 Subject: 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 --- ArmPkg/Library/SemiHostingSerialPortLib/SerialPortLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ArmPkg/Library') 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; } -- cgit v1.2.3