From owner-freebsd-bugs Sat Aug 19 08:11:14 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id IAA06763 for bugs-outgoing; Sat, 19 Aug 1995 08:11:14 -0700 Received: from aries.ibms.sinica.edu.tw ([140.109.40.248]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id IAA06735 for ; Sat, 19 Aug 1995 08:11:06 -0700 Received: (from taob@localhost) by aries.ibms.sinica.edu.tw (8.6.11/8.6.9) id XAA25494; Sat, 19 Aug 1995 23:10:52 +0800 Date: Sat, 19 Aug 1995 23:10:50 +0800 (CST) From: Brian Tao To: FREEBSD-BUGS-L Subject: Nutty nfsd warning message Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: bugs-owner@freebsd.org Precedence: bulk For whatever reason today, I decided to type "nfsd -nut 4" to start up some more NFS server testing. I got this error: nfsd: nfsd count 4; reset to -272639580 The warnx() generating that message is missing an argument, so garbage is printed out for the second value: *** nfsd.c Sat Aug 19 23:08:43 1995 --- nfsd.c-orig Sat Aug 19 23:08:17 1995 *************** *** 182,188 **** case 'n': nfsdcnt = atoi(optarg); if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) { ! warnx("nfsd count %d; reset to %d", nfsdcnt, DEFNFSDCNT); nfsdcnt = DEFNFSDCNT; } break; --- 182,188 ---- case 'n': nfsdcnt = atoi(optarg); if (nfsdcnt < 1 || nfsdcnt > MAXNFSDCNT) { ! warnx("nfsd count %d; reset to %d", DEFNFSDCNT); nfsdcnt = DEFNFSDCNT; } break; -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org