Skip to content

Commit

Permalink
Fix typos that cause compile error when file system debug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Oct 7, 2014
1 parent e5f3487 commit 974f884
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs/aio/aio_fsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion fs/aio/aio_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions fs/aio/aio_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 974f884

Please sign in to comment.