summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorbernard <[email protected]>2014-12-31 11:53:12 +0800
committerbernard <[email protected]>2014-12-31 11:53:12 +0800
commitb73283135dd60c62891c6023717500afd77ab97e (patch)
treeaaef4b66b74d1796793f1d0d95fee6d9f022fe38 /components/libc
parent354d4334461da82c9013692bd87fc2c0ed9dfa51 (diff)
Add cplusplus initialization for ARMCC; Fix printf issue in _sys_write.
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/armlibc/stubs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/armlibc/stubs.c b/components/libc/armlibc/stubs.c
index cb651b66fa..b74710e056 100644
--- a/components/libc/armlibc/stubs.c
+++ b/components/libc/armlibc/stubs.c
@@ -169,7 +169,8 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode)
console_device = rt_console_get_device();
if (console_device != 0) rt_device_write(console_device, 0, buf, len);
- return len;
+
+ return 0;
#endif
}