mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 15:30:25 +08:00
Fix compile problems with debug on
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <aio.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -124,7 +124,7 @@ int aio_suspend(FAR const struct aiocb *const list[], int nent,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
DEBUGASSERT(aiocbp);
|
||||
DEBUGASSERT(list);
|
||||
|
||||
/* Lock the scheduler so that no I/O events can complete on the worker
|
||||
* thread until we set our wait set up. Pre-emption will, of course, be
|
||||
|
||||
@@ -603,7 +603,7 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent,
|
||||
|
||||
errcode = get_errno();
|
||||
fdbg("ERROR: aio_read/write failed: %d\n", errcode);
|
||||
DEBUGASSERT(errocode > 0);
|
||||
DEBUGASSERT(errcode > 0);
|
||||
aiocbp->aio_result = -errcode;
|
||||
ret = ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user