From owner-freebsd-current Tue Sep 8 20:55:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA12014 for freebsd-current-outgoing; Tue, 8 Sep 1998 20:55:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA12009 for ; Tue, 8 Sep 1998 20:55:53 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id VAA02825; Tue, 8 Sep 1998 21:02:13 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199809090402.VAA02825@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: dmaddox@scsn.net cc: freebsd-current@FreeBSD.ORG Subject: Re: vmstat/iostat dumping all over the place In-reply-to: Your message of "Tue, 08 Sep 1998 23:25:42 -0000." <19980908232542.A296@scsn.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 08 Sep 1998 21:02:12 -0700 From: Mike Smith 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... Probably a padding issue. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message