mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user