diff options
author | pst <pst@FreeBSD.org> | 1996-02-03 06:33:23 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-02-03 06:33:23 +0000 |
commit | 16649f0763c7525c7bbdabd0ceaed5f0d1540856 (patch) | |
tree | 6babc2ccce767bb398cdaf10a0aaec326c3d449d /sbin/rdisc | |
parent | 12102ecb9dbbc46025cb642c678b9cbdc68b4619 (diff) | |
download | FreeBSD-src-16649f0763c7525c7bbdabd0ceaed5f0d1540856.zip FreeBSD-src-16649f0763c7525c7bbdabd0ceaed5f0d1540856.tar.gz |
Only print statistics in verbose mode
Diffstat (limited to 'sbin/rdisc')
-rw-r--r-- | sbin/rdisc/rdisc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/rdisc/rdisc.c b/sbin/rdisc/rdisc.c index 2430f0f..b78b1e1 100644 --- a/sbin/rdisc/rdisc.c +++ b/sbin/rdisc/rdisc.c @@ -904,11 +904,12 @@ finish(sig) ntransmitted++; advertise(&whereto); } - logtrace("\n----%s rdisc Statistics----\n", sendaddress ); - logtrace("%d packets transmitted, ", ntransmitted ); - logtrace("%d packets received, ", nreceived ); - logtrace("\n"); - (void) fflush(stdout); + if (verbose) { + logtrace("\n----%s rdisc Statistics----\n", sendaddress ); + logtrace("%d packets transmitted, ", ntransmitted ); + logtrace("%d packets received, ", nreceived ); + (void) fflush(stdout); + } exit(0); } |