mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user