aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount.c
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2003-12-07 17:00:14 +0000
committerIan Dowse <iedowse@FreeBSD.org>2003-12-07 17:00:14 +0000
commit96c65ccb2faccef1648638969dcd6b7356f03edd (patch)
treedaa8683ea5830ee9e6ec78ff13f25525971c9260 /sbin/mount/mount.c
parentad48e87d0cd590f1dc3093b2d917f4eca6ca1de9 (diff)
downloadsrc-96c65ccb2faccef1648638969dcd6b7356f03edd.tar.gz
src-96c65ccb2faccef1648638969dcd6b7356f03edd.zip
Print out the file system access statistics using uintmax_t types
instead of casting the unsigned 64-bit values to longs. Suggested by: bde
Notes
Notes: svn path=/head/; revision=123242
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r--sbin/mount/mount.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index ff4fb8c2b784..75e72bf64bbe 100644
--- a/sbin/mount/mount.c
+++ b/sbin/mount/mount.c
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include <paths.h>
#include <pwd.h>
#include <signal.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -530,11 +531,13 @@ prmount(sfp)
}
if (verbose) {
if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0)
- (void)printf(", writes: sync %ld async %ld",
- (long)sfp->f_syncwrites, (long)sfp->f_asyncwrites);
+ (void)printf(", writes: sync %ju async %ju",
+ (uintmax_t)sfp->f_syncwrites,
+ (uintmax_t)sfp->f_asyncwrites);
if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0)
- (void)printf(", reads: sync %ld async %ld",
- (long)sfp->f_syncreads, (long)sfp->f_asyncreads);
+ (void)printf(", reads: sync %ju async %ju",
+ (uintmax_t)sfp->f_syncreads,
+ (uintmax_t)sfp->f_asyncreads);
if (sfp->f_fsid.val[0] != 0 || sfp->f_fsid.val[1] != 0) {
printf(", fsid ");
for (i = 0; i < sizeof(sfp->f_fsid); i++)