Skip to content
Snippets Groups Projects
Commit 974f884d authored by Gregory Nutt's avatar Gregory Nutt
Browse files

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

parent e5f34875
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment