mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
drivers/syslog/note_driver.c: nxstyle fix
This commit is contained in:
committed by
Xiang Xiao
parent
56fa98f3ea
commit
ec0212cc8a
@@ -97,26 +97,26 @@ static ssize_t note_read(FAR struct file *filep, FAR char *buffer,
|
|||||||
sched_lock();
|
sched_lock();
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
/* Get the next note (removing it from the buffer) */
|
/* Get the next note (removing it from the buffer) */
|
||||||
|
|
||||||
notelen = sched_note_get((FAR uint8_t *)buffer, buflen);
|
notelen = sched_note_get((FAR uint8_t *)buffer, buflen);
|
||||||
if (notelen < 0)
|
if (notelen < 0)
|
||||||
{
|
{
|
||||||
/* We were unable to read the next note, probably because it will
|
/* We were unable to read the next note, probably because it will
|
||||||
* not fit into the user buffer.
|
* not fit into the user buffer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (retlen == 0)
|
if (retlen == 0)
|
||||||
{
|
{
|
||||||
/* If nothing was read then report the error. Otherwise,
|
/* If nothing was read then report the error. Otherwise,
|
||||||
* just silently drop the note.
|
* just silently drop the note.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
retlen = notelen;
|
retlen = notelen;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update pointers from the note that was transferred */
|
/* Update pointers from the note that was transferred */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user