4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-19 03:51:28 +08:00

[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.

This commit is contained in:
bernard 2014-09-11 12:53:23 +08:00
parent b23de95ff4
commit 6045b3a075

View File

@ -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");