From c0e48f0417e21c5300d0ac8b7a696f989145a7e1 Mon Sep 17 00:00:00 2001 From: xukai Date: Fri, 9 Jul 2021 17:37:46 +0800 Subject: [PATCH] =?UTF-8?q?[components][kernel]=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=A4=9A=E6=A0=B8=E4=B8=8B=20finsh=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E4=B8=B2=E5=8F=A3=E8=BE=93=E5=85=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/kservice.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/kservice.c b/src/kservice.c index 49e1486078..128a9f4f54 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -1176,11 +1176,7 @@ void rt_kputs(const char *str) } else { - rt_uint16_t old_flag = _console_device->open_flag; - - _console_device->open_flag |= RT_DEVICE_FLAG_STREAM; rt_device_write(_console_device, 0, str, rt_strlen(str)); - _console_device->open_flag = old_flag; } #else rt_hw_console_output(str); @@ -1214,11 +1210,7 @@ RT_WEAK void rt_kprintf(const char *fmt, ...) } else { - rt_uint16_t old_flag = _console_device->open_flag; - - _console_device->open_flag |= RT_DEVICE_FLAG_STREAM; rt_device_write(_console_device, 0, rt_log_buf, length); - _console_device->open_flag = old_flag; } #else rt_hw_console_output(rt_log_buf);