diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-12-14 12:21:05 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-12-14 12:21:05 +0000 |
commit | 1a71f9000aae37af386bebedc1edc9dfb08272db (patch) | |
tree | d8b17ef3407252c257bfdcfa204923149a02307b /usr.bin | |
parent | 447be265d74f8a2561c00235acf7c627bb145647 (diff) |
only print a separating '\n' when showing both server and client info
ok deraadt@ hshoexer@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 407519643a4..75154bac3bf 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsstat.c,v 1.24 2004/09/14 23:53:22 deraadt Exp $ */ +/* $OpenBSD: nfsstat.c,v 1.25 2004/12/14 12:21:04 pedro Exp $ */ /* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93"; static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $"; #else -static char *rcsid = "$OpenBSD: nfsstat.c,v 1.24 2004/09/14 23:53:22 deraadt Exp $"; +static char *rcsid = "$OpenBSD: nfsstat.c,v 1.25 2004/12/14 12:21:04 pedro Exp $"; #endif #endif /* not lint */ @@ -280,8 +280,12 @@ intpr(u_int display) printf(" %9d %9d\n", nfsstats.direofcache_hits, nfsstats.direofcache_misses); } + + if (display == SHOW_ALL) + printf("\n"); + if (display & SHOW_SERVER) { - printf("\nServer Info:\n"); + printf("Server Info:\n"); printf("%9.9s %9.9s %9.9s %9.9s %9.9s %9.9s %9.9s %9.9s\n", "Getattr", "Setattr", "Lookup", "Readlink", "Read", "Write", "Create", "Remove"); |