提交 78d42efd 编写于 作者: B Bernard Xiong

[DFS] cleanup the log in dfs.

上级 a87c2ef9
...@@ -369,8 +369,7 @@ int dfs_file_stat(const char *path, struct stat *buf) ...@@ -369,8 +369,7 @@ int dfs_file_stat(const char *path, struct stat *buf)
if ((fs = dfs_filesystem_lookup(fullpath)) == NULL) if ((fs = dfs_filesystem_lookup(fullpath)) == NULL)
{ {
LOG_E( LOG_E("can't find mounted filesystem on this path:%s", fullpath);
"can't find mounted filesystem on this path:%s", fullpath);
rt_free(fullpath); rt_free(fullpath);
return -ENOENT; return -ENOENT;
...@@ -399,8 +398,7 @@ int dfs_file_stat(const char *path, struct stat *buf) ...@@ -399,8 +398,7 @@ int dfs_file_stat(const char *path, struct stat *buf)
if (fs->ops->stat == NULL) if (fs->ops->stat == NULL)
{ {
rt_free(fullpath); rt_free(fullpath);
LOG_E( LOG_E("the filesystem didn't implement this function");
"the filesystem didn't implement this function");
return -ENOSYS; return -ENOSYS;
} }
...@@ -565,7 +563,7 @@ void ls(const char *pathname) ...@@ -565,7 +563,7 @@ void ls(const char *pathname)
} }
else else
{ {
rt_kprintf("%-25lu\n", stat.st_size); rt_kprintf("%-25lu\n", (unsigned long)stat.st_size);
} }
} }
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册