From 6045b3a075bd2fa10a7b71b67979278e559d9bb2 Mon Sep 17 00:00:00 2001 From: bernard Date: Thu, 11 Sep 2014 12:53:23 +0800 Subject: [PATCH] [LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device. --- components/utilities/logtrace/log_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/utilities/logtrace/log_trace.c b/components/utilities/logtrace/log_trace.c index d060465907..2ac94c19d1 100644 --- a/components/utilities/logtrace/log_trace.c +++ b/components/utilities/logtrace/log_trace.c @@ -404,7 +404,7 @@ rt_err_t log_trace_set_device(const char *device_name) rt_err_t result; /* open device */ - result = rt_device_open(output_device, RT_DEVICE_FLAG_STREAM | RT_DEVICE_FLAG_RDWR); + result = rt_device_open(output_device, RT_DEVICE_FLAG_STREAM | RT_DEVICE_OFLAG_RDWR); if (result != RT_EOK) { rt_kprintf("Open trace device failed.\n");