diff options
author | kris <kris@FreeBSD.org> | 2003-11-12 21:47:42 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-11-12 21:47:42 +0000 |
commit | 76286d34575e4d82d65fc44f6653db3b558fcddd (patch) | |
tree | 5d117986ca783c1c14cbb11e90e4af90f3cd2eaa | |
parent | 89a592a70c828aa2ebb221221e8c36c83179cdb5 (diff) | |
download | FreeBSD-src-76286d34575e4d82d65fc44f6653db3b558fcddd.zip FreeBSD-src-76286d34575e4d82d65fc44f6653db3b558fcddd.tar.gz |
Fix format strings (intmax_t is %jd, not %qd)
Reviewed by: tjr
-rw-r--r-- | bin/df/df.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 83c7d2d..bbaa297 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -445,7 +445,7 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp) if (hflag) { prthuman(sfsp, used); } else { - (void)printf(" %*qd %*qd %*qd", + (void)printf(" %*jd %*jd %*jd", (u_int)mwp->total, (intmax_t)fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize), (u_int)mwp->used, @@ -458,7 +458,7 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp) if (iflag) { inodes = sfsp->f_files; used = inodes - sfsp->f_ffree; - (void)printf(" %*qd %*qd %4.0f%% ", + (void)printf(" %*jd %*jd %4.0f%% ", (u_int)mwp->iused, (intmax_t)used, (u_int)mwp->ifree, (intmax_t)sfsp->f_ffree, inodes == 0 ? 100.0 : (double)used / (double)inodes * 100.0); |