Fix typos that cause compile error when file system debug is enabled

This commit is contained in:
Gregory Nutt 2014-10-07 13:49:49 -06:00
parent e5f34875ff
commit 974f884ddc
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}