Skip to content

Commit 78d42ef

Browse files
committed
[DFS] cleanup the log in dfs.
1 parent a87c2ef commit 78d42ef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

components/dfs/src/dfs_file.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,7 @@ int dfs_file_stat(const char *path, struct stat *buf)
369369

370370
if ((fs = dfs_filesystem_lookup(fullpath)) == NULL)
371371
{
372-
LOG_E(
373-
"can't find mounted filesystem on this path:%s", fullpath);
372+
LOG_E("can't find mounted filesystem on this path:%s", fullpath);
374373
rt_free(fullpath);
375374

376375
return -ENOENT;
@@ -399,8 +398,7 @@ int dfs_file_stat(const char *path, struct stat *buf)
399398
if (fs->ops->stat == NULL)
400399
{
401400
rt_free(fullpath);
402-
LOG_E(
403-
"the filesystem didn't implement this function");
401+
LOG_E("the filesystem didn't implement this function");
404402

405403
return -ENOSYS;
406404
}
@@ -565,7 +563,7 @@ void ls(const char *pathname)
565563
}
566564
else
567565
{
568-
rt_kprintf("%-25lu\n", stat.st_size);
566+
rt_kprintf("%-25lu\n", (unsigned long)stat.st_size);
569567
}
570568
}
571569
else

0 commit comments

Comments
 (0)