Fix bug in semihosting write function
The return value from the SYS_WRITE semihosting operation is 0 if
the call is successful or the number of bytes not written, if there
is an error. The implementation of the write function in the
semihosting driver treats the return value as the number of bytes
written, which is wrong. This patch fixes it.

Change-Id: Id39dac3d17b5eac557408b8995abe90924c85b85
1 parent 7bcbb96 commit 31833aff6802a4b5bdc3b7007ce8b1871991e796
@Juan Castillo Juan Castillo authored on 7 Jul 2015
Achin Gupta committed on 16 Jul 2015
Showing 2 changed files
View
drivers/io/io_semihosting.c
View
lib/semihosting/semihosting.c