diff options
| author | wdfk-prog <[email protected]> | 2025-10-13 13:20:30 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-11-13 15:16:49 +0800 |
| commit | f56875fff5b5f4b7e57f027660427e7bf8535af5 (patch) | |
| tree | b134f913da431d6148ef517f8b1e5b49f83c5b7a /components/dfs | |
| parent | 91503175390d322ba53e3936b33a4d1c919abc20 (diff) | |
fix[components]: 修复日志输出的gcc编译警告
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/dfs_v1/src/dfs_fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/dfs/dfs_v1/src/dfs_fs.c b/components/dfs/dfs_v1/src/dfs_fs.c index 810690bee9..c2fbe80110 100644 --- a/components/dfs/dfs_v1/src/dfs_fs.c +++ b/components/dfs/dfs_v1/src/dfs_fs.c @@ -183,7 +183,7 @@ int dfs_filesystem_get_partition(struct dfs_partition *part, part->offset = *(dpt + 8) | *(dpt + 9) << 8 | *(dpt + 10) << 16 | *(dpt + 11) << 24; part->size = *(dpt + 12) | *(dpt + 13) << 8 | *(dpt + 14) << 16 | *(dpt + 15) << 24; - rt_kprintf("found part[%d], begin: %d, size: ", + rt_kprintf("found part[%ld], begin: %ld, size: ", pindex, part->offset * 512); if ((part->size >> 11) == 0) rt_kprintf("%d%s", part->size >> 1, "KB\n"); /* KB */ @@ -636,7 +636,7 @@ int df(const char *path) if (rt_get_errno() == -ENOSYS) rt_kprintf("The function is not implemented.\n"); else - rt_kprintf("statfs failed: errno=%d.\n", rt_get_errno()); + rt_kprintf("statfs failed: errno=%ld.\n", rt_get_errno()); return -1; } @@ -649,7 +649,7 @@ int df(const char *path) cap = cap / 1024; } - rt_kprintf("disk free: %d.%d %s [ %d block, %d bytes per block ]\n", + rt_kprintf("disk free: %ld.%d %s [ %d block, %d bytes per block ]\n", (unsigned long)cap, minor, unit_str[unit_index], buffer.f_bfree, buffer.f_bsize); return 0; } |
