Fix typos that cause compile error when file system debug is enabled
This commit is contained in:
parent
e5f34875ff
commit
974f884ddc
@ -116,7 +116,7 @@ static void aio_fsync_worker(FAR void *arg)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
fdbg("ERROR: fsync failed: %d\n", errode);
|
||||
fdbg("ERROR: fsync failed: %d\n", errcode);
|
||||
DEBUGASSERT(errcode > 0);
|
||||
aiocbp->aio_result = -errcode;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ static void aio_read_worker(FAR void *arg)
|
||||
if (nread < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
fdbg("ERROR: pread failed: %d\n", errode);
|
||||
fdbg("ERROR: pread failed: %d\n", errcode);
|
||||
DEBUGASSERT(errcode > 0);
|
||||
aiocbp->aio_result = -errcode;
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ static void aio_write_worker(FAR void *arg)
|
||||
if (oflags < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
fdbg("ERROR: fcntl failed: %d\n", errode);
|
||||
fdbg("ERROR: fcntl failed: %d\n", errcode);
|
||||
aiocbp->aio_result = -errcode;
|
||||
}
|
||||
else
|
||||
@ -168,7 +168,7 @@ static void aio_write_worker(FAR void *arg)
|
||||
if (nwritten < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
fdbg("ERROR: write/pwrite failed: %d\n", errode);
|
||||
fdbg("ERROR: write/pwrite failed: %d\n", errcode);
|
||||
DEBUGASSERT(errcode > 0);
|
||||
aiocbp->aio_result = -errcode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user