[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
1 changed files with 1 additions and 1 deletions

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