summaryrefslogtreecommitdiff
path: root/nuttx/fs
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-30 10:19:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-30 10:19:09 -0600
commit7dd4998800048be91e14e730e6e60561452e33f4 (patch)
tree85610aa58081734b96d2c798c15307968503898e /nuttx/fs
parent29c2668b2fe41cec2e2fe5501c3d7dfdf46026d5 (diff)
downloadpx4-nuttx-7dd4998800048be91e14e730e6e60561452e33f4.tar.gz
px4-nuttx-7dd4998800048be91e14e730e6e60561452e33f4.tar.bz2
px4-nuttx-7dd4998800048be91e14e730e6e60561452e33f4.zip
Updated README file, cosmetic changes to comments and debug output
Diffstat (limited to 'nuttx/fs')
-rw-r--r--nuttx/fs/fs_automount.c6
-rw-r--r--nuttx/fs/fs_mount.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/fs/fs_automount.c b/nuttx/fs/fs_automount.c
index 51ffe70ef..f23c5f057 100644
--- a/nuttx/fs/fs_automount.c
+++ b/nuttx/fs/fs_automount.c
@@ -387,7 +387,7 @@ static void automount_timeout(int argc, uint32_t arg1, ...)
ret = work_queue(LPWORK, &priv->work, automount_worker, priv, 0);
if (ret < 0)
{
- /* NOTE: Currently, work_cancel only returns success */
+ /* NOTE: Currently, work_queue only returns success */
fdbg("ERROR: Failed to schedule work: %d\n", ret);
}
@@ -501,7 +501,7 @@ static int automount_interrupt(FAR const struct automount_lower_s *lower,
priv->lower->ddelay);
if (ret < 0)
{
- /* NOTE: Currently, work_cancel only returns success */
+ /* NOTE: Currently, work_queue only returns success */
fdbg("ERROR: Failed to schedule work: %d\n", ret);
}
@@ -579,7 +579,7 @@ FAR void *automount_initialize(FAR const struct automount_lower_s *lower)
priv->lower->ddelay);
if (ret < 0)
{
- /* NOTE: Currently, work_cancel only returns success */
+ /* NOTE: Currently, work_queue only returns success */
fdbg("ERROR: Failed to schedule work: %d\n", ret);
}
diff --git a/nuttx/fs/fs_mount.c b/nuttx/fs/fs_mount.c
index d1ffba62c..8b6d80f2b 100644
--- a/nuttx/fs/fs_mount.c
+++ b/nuttx/fs/fs_mount.c
@@ -246,7 +246,7 @@ int mount(FAR const char *source, FAR const char *target,
ret = find_blockdriver(source, mountflags, &blkdrvr_inode);
if (ret < 0)
{
- fdbg("Failed to find block driver %s\n", source);
+ fdbg("ERROR: Failed to find block driver %s\n", source);
errcode = -ret;
goto errout;
}
@@ -260,7 +260,7 @@ int mount(FAR const char *source, FAR const char *target,
else
#endif /* NONBDFS_SUPPORT */
{
- fdbg("Failed to find file system %s\n", filesystemtype);
+ fdbg("ERROR: Failed to find file system %s\n", filesystemtype);
errcode = ENODEV;
goto errout;
}
@@ -281,7 +281,7 @@ int mount(FAR const char *source, FAR const char *target,
* -ENOMEM - Failed to allocate in-memory resources for the operation
*/
- fdbg("Failed to reserve inode\n");
+ fdbg("ERROR: Failed to reserve inode\n");
errcode = -ret;
goto errout_with_semaphore;
}
@@ -295,7 +295,7 @@ int mount(FAR const char *source, FAR const char *target,
{
/* The filesystem does not support the bind operation ??? */
- fdbg("Filesystem does not support bind\n");
+ fdbg("ERROR: Filesystem does not support bind\n");
errcode = EINVAL;
goto errout_with_mountpt;
}
@@ -325,7 +325,7 @@ int mount(FAR const char *source, FAR const char *target,
* error.
*/
- fdbg("Bind method failed: %d\n", ret);
+ fdbg("ERROR: Bind method failed: %d\n", ret);
#ifdef BDFS_SUPPORT
#ifdef NONBDFS_SUPPORT
if (blkdrvr_inode)
@@ -400,7 +400,7 @@ errout:
return ERROR;
#else
- fdbg("No filesystems enabled\n");
+ fdbg("ERROR: No filesystems enabled\n");
set_errno(ENOSYS);
return ERROR;
#endif /* BDFS_SUPPORT || NONBDFS_SUPPORT */