RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.55k stars 5.03k forks source link

[fix]:fix log format and reopen with a different oflag issue #9452

Closed milo-9 closed 2 months ago

milo-9 commented 2 months ago

拉取/合并请求描述:(PR description)

[

为什么提交这份PR (why to submit this PR)

Device name may not be terminated by a null character which should be considered during logging. Reopening a device with a same oflag should do nothing but increase the reference counter. In here no matter what the oflag is it just do the open again. It is not what we want.

你的解决方案是什么 (what is your solution)

fix it

请提供验证的bsp和config (provide the config and bsp)

]

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following: