From 76286d34575e4d82d65fc44f6653db3b558fcddd Mon Sep 17 00:00:00 2001 From: kris Date: Wed, 12 Nov 2003 21:47:42 +0000 Subject: Fix format strings (intmax_t is %jd, not %qd) Reviewed by: tjr --- bin/df/df.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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); -- cgit v1.1