diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-06 12:55:12 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-06 12:55:12 +0000 |
commit | 7e4202ae46606be697611dd6f5f867c4915dc046 (patch) | |
tree | ee0036f9ad934743d02dfe0e3b4cfe7a01e63d92 /os/hal/platforms/Linux | |
parent | bc489e39a8036bd8cc70569ac8e31ec257d68747 (diff) | |
download | ChibiOS-7e4202ae46606be697611dd6f5f867c4915dc046.tar.gz ChibiOS-7e4202ae46606be697611dd6f5f867c4915dc046.tar.bz2 ChibiOS-7e4202ae46606be697611dd6f5f867c4915dc046.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1506 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/Linux')
-rw-r--r-- | os/hal/platforms/Linux/console.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/os/hal/platforms/Linux/console.c b/os/hal/platforms/Linux/console.c index 0c47ff491..7c6bd705d 100644 --- a/os/hal/platforms/Linux/console.c +++ b/os/hal/platforms/Linux/console.c @@ -47,9 +47,12 @@ BaseChannel CD1; static size_t writes(void *ip, const uint8_t *bp, size_t n) {
+ size_t ret;
(void)ip;
- return fwrite(bp, 1, n, stdout);
+ ret = fwrite(bp, 1, n, stdout);
+ fflush(stdout);
+ return ret;
}
static size_t reads(void *ip, uint8_t *bp, size_t n) {
@@ -87,10 +90,13 @@ static msg_t gett(void *ip, systime_t time) { }
static size_t writet(void *ip, const uint8_t *bp, size_t n, systime_t time) {
+ size_t ret;
(void)ip;
(void)time;
- return fwrite(bp, 1, n, stdout);
+ ret = fwrite(bp, 1, n, stdout);
+ fflush(stdout);
+ return ret;
}
static size_t readt(void *ip, uint8_t *bp, size_t n, systime_t time) {
|