A warning is printed to the user if a buffer wrap condition has occurred.
如果发生了缓冲区回绕,就向用户输出警告。
In a buffer wrap condition, the first read returns only the keyword BUF_WRAP.
如果出现缓冲区回绕,第一个read只返回关键字BUF _ WRAP。
One method that works very well is to maintain a history of the last few messages in a circular buffer that can then be dumped when an error condition occurs.
一个非常好的做法是在循环缓冲器中维护最近几条消息的历史记录,当错误情况出现时,可以转储循环缓冲器。
应用推荐