From 1f3ea02c5ace84d848a03fb014a664bdf586a07d Mon Sep 17 00:00:00 2001 From: bernard Date: Thu, 11 Sep 2014 12:54:05 +0800 Subject: [PATCH] [Kernel] Use stream mode to open console device. --- src/kservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kservice.c b/src/kservice.c index cb0064f38b..12878e67d1 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -1073,7 +1073,7 @@ rt_device_t rt_console_set_device(const char *name) /* set new console device */ _console_device = new; - rt_device_open(_console_device, RT_DEVICE_OFLAG_RDWR); + rt_device_open(_console_device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM); } return old;