From b55c3488b18998777c70bebb1753780a97b4e9b9 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Wed, 23 Aug 2000 09:59:25 +0000 Subject: Only print information about reads and writes when the -v flag (for verbose mode) is specified. This should really have been the case when this extra cruft was first introduced in rev 1.23. PR: 20710 Reported by: Mike Meyer --- sbin/mount/mount.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sbin/mount') diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 65bcb5d..3177776 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -522,12 +522,14 @@ prmount(sfp) else (void)printf("%d", sfp->f_owner); } - if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) - (void)printf(", writes: sync %ld async %ld", - sfp->f_syncwrites, sfp->f_asyncwrites); - if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0) - (void)printf(", reads: sync %ld async %ld", - sfp->f_syncreads, sfp->f_asyncreads); + if (verbose) { + if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) + (void)printf(", writes: sync %ld async %ld", + sfp->f_syncwrites, sfp->f_asyncwrites); + if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0) + (void)printf(", reads: sync %ld async %ld", + sfp->f_syncreads, sfp->f_asyncreads); + } (void)printf(")\n"); } -- cgit v1.1