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; }