diff options
| author | bernard <[email protected]> | 2014-09-11 12:53:23 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-09-11 12:53:23 +0800 |
| commit | 6045b3a075bd2fa10a7b71b67979278e559d9bb2 (patch) | |
| tree | 536ddc4b28f623bb7eab82e257fa553d1719a144 /components/utilities | |
| parent | b23de95ff47298df2bea06346623fa90922bdc98 (diff) | |
[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.
Diffstat (limited to 'components/utilities')
| -rw-r--r-- | components/utilities/logtrace/log_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
