diff options
| author | bernard <[email protected]> | 2014-12-31 11:53:12 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-12-31 11:53:12 +0800 |
| commit | b73283135dd60c62891c6023717500afd77ab97e (patch) | |
| tree | aaef4b66b74d1796793f1d0d95fee6d9f022fe38 /components/libc/armlibc | |
| parent | 354d4334461da82c9013692bd87fc2c0ed9dfa51 (diff) | |
Add cplusplus initialization for ARMCC; Fix printf issue in _sys_write.
Diffstat (limited to 'components/libc/armlibc')
| -rw-r--r-- | components/libc/armlibc/stubs.c | 3 |
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 } |
