fs/: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.

This commit is contained in:
Gregory Nutt
2016-06-11 17:14:02 -06:00
parent be80a0b99c
commit ad2f7b0119
21 changed files with 173 additions and 156 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ int close_blockdriver(FAR struct inode *inode)
if (!INODE_IS_BLOCK(inode))
{
ferr("inode is not a block driver\n");
ferr("ERROR: inode is not a block driver\n");
ret = -ENOTBLK;
goto errout;
}
+3 -3
View File
@@ -96,7 +96,7 @@ int find_blockdriver(FAR const char *pathname, int mountflags, FAR struct inode
inode = inode_find(pathname, NULL);
if (!inode)
{
ferr("Failed to find %s\n", pathname);
ferr("ERROR: Failed to find %s\n", pathname);
ret = -ENOENT;
goto errout;
}
@@ -105,7 +105,7 @@ int find_blockdriver(FAR const char *pathname, int mountflags, FAR struct inode
if (!INODE_IS_BLOCK(inode))
{
ferr("%s is not a block driver\n", pathname);
ferr("ERROR: %s is not a block driver\n", pathname);
ret = -ENOTBLK;
goto errout_with_inode;
}
@@ -115,7 +115,7 @@ int find_blockdriver(FAR const char *pathname, int mountflags, FAR struct inode
if (!inode->u.i_bops || !inode->u.i_bops->read ||
(!inode->u.i_bops->write && (mountflags & MS_RDONLY) == 0))
{
ferr("%s does not support requested access\n", pathname);
ferr("ERROR: %s does not support requested access\n", pathname);
ret = -EACCES;
goto errout_with_inode;
}
+2 -2
View File
@@ -96,7 +96,7 @@ int open_blockdriver(FAR const char *pathname, int mountflags,
ret = find_blockdriver(pathname, mountflags, &inode);
if (ret < 0)
{
ferr("Failed to file %s block driver\n", pathname);
ferr("ERROR: Failed to file %s block driver\n", pathname);
goto errout;
}
@@ -110,7 +110,7 @@ int open_blockdriver(FAR const char *pathname, int mountflags,
ret = inode->u.i_bops->open(inode);
if (ret < 0)
{
ferr("%s driver open failed\n", pathname);
ferr("ERROR: %s driver open failed\n", pathname);
goto errout_with_inode;
}
}