cmd/df: Fix the abnormal output after off_t change

Change-Id: Ieaf063cb636a77eea971cb19e6eaeea6421bff4b
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2021-08-05 18:14:46 +08:00
parent df1ffd9680
commit 8ecd51ac0e
+2 -1
View File
@@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/statfs.h>
#include <sys/stat.h>
@@ -253,7 +254,7 @@ static int blocks_entry(FAR const char *mountpoint,
/* Generate blocks list one line at a time */
mount_sprintf(info, "%6ld %8ld %8ld %8ld %s\n",
mount_sprintf(info, "%6ld %8" PRIdOFF " %8" PRIdOFF " %8" PRIdOFF " %s\n",
statbuf->f_bsize, statbuf->f_blocks,
statbuf->f_blocks - statbuf->f_bavail, statbuf->f_bavail,
mountpoint);