From owner-freebsd-current Tue Sep 8 20:25:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA09468 for freebsd-current-outgoing; Tue, 8 Sep 1998 20:25:24 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.scsn.net (scsn.net [206.25.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA09463 for ; Tue, 8 Sep 1998 20:25:20 -0700 (PDT) (envelope-from dmaddox@scsn.net) Received: from rhiannon.scsn.net ([209.12.57.20]) by mail.scsn.net (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-41950U6000L1100S0) with ESMTP id AAA226 for ; Tue, 8 Sep 1998 23:17:07 -0400 Received: (from root@localhost) by rhiannon.scsn.net (8.9.1/8.9.1) id XAA00303 for freebsd-current@FreeBSD.ORG; Tue, 8 Sep 1998 23:25:43 GMT (envelope-from root) Message-ID: <19980908232542.A296@scsn.net> Date: Tue, 8 Sep 1998 23:25:42 +0000 From: dmaddox@scsn.net (Donald J. Maddox) To: freebsd-current@FreeBSD.ORG Subject: Re: vmstat/iostat dumping all over the place Reply-To: dmaddox@scsn.net References: <199809090141.SAA11928@mordred.cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199809090141.SAA11928@mordred.cs.ucla.edu>; from Scott Michel on Tue, Sep 08, 1998 at 06:41:42PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Sep 08, 1998 at 06:41:42PM -0700, Scott Michel wrote: > I zapped the message which identified the problem. It looks like > there is a missing 0 or NULL at the end of the defnames[] array > in src/usr.bin/vmstat/names.c. > > I made a local mod to mine, and that's the problem. Change line 47 > from: > > char *defdrives[] = { "wd0", "wd1", "sd0", "sd1" }; > > to: > > char *defdrives[] = { "wd0", "wd1", "sd0", "sd1", NULL }; It would be interesting if someone could explain why this code worked fine when compiled as aout, but barfed when compiled as ELF... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message