Skip site navigation (1)Skip section navigation (2)
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
Message-ID:  <19980908232542.A296@scsn.net>
In-Reply-To: <199809090141.SAA11928@mordred.cs.ucla.edu>; from Scott Michel on Tue, Sep 08, 1998 at 06:41:42PM -0700
References:  <199809090141.SAA11928@mordred.cs.ucla.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980908232542.A296>