diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-07 13:49:49 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-07 13:49:49 -0600 |
commit | 4575d159945ded6889389307d0ac15f8283055ad (patch) | |
tree | cd6443b43b65aadd7596e550a1821d849ec4832a | |
parent | d8c10b54c1bf70631bd56759a6ad0dc6c1596967 (diff) | |
download | px4-nuttx-4575d159945ded6889389307d0ac15f8283055ad.tar.gz px4-nuttx-4575d159945ded6889389307d0ac15f8283055ad.tar.bz2 px4-nuttx-4575d159945ded6889389307d0ac15f8283055ad.zip |
Fix typos that cause compile error when file system debug is enabled
-rw-r--r-- | nuttx/fs/aio/aio_fsync.c | 2 | ||||
-rw-r--r-- | nuttx/fs/aio/aio_read.c | 2 | ||||
-rw-r--r-- | nuttx/fs/aio/aio_write.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/fs/aio/aio_fsync.c b/nuttx/fs/aio/aio_fsync.c index 8aed8bdd1..cfb2522e6 100644 --- a/nuttx/fs/aio/aio_fsync.c +++ b/nuttx/fs/aio/aio_fsync.c @@ -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; } diff --git a/nuttx/fs/aio/aio_read.c b/nuttx/fs/aio/aio_read.c index 33e6f4065..3a3c5f234 100644 --- a/nuttx/fs/aio/aio_read.c +++ b/nuttx/fs/aio/aio_read.c @@ -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; } diff --git a/nuttx/fs/aio/aio_write.c b/nuttx/fs/aio/aio_write.c index 5ea2fe8e6..497f8010d 100644 --- a/nuttx/fs/aio/aio_write.c +++ b/nuttx/fs/aio/aio_write.c @@ -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; } |