On Mon, 9 Aug 2010 22:21:02 +0100 David Laight <[email protected]> wrote:
> On Mon, Aug 09, 2010 at 02:02:51PM -0700, Paul Goyette wrote: > > > > Does anyone object to my going through and coming up with shorter names > > (<= 8 chars) for these condvars? > > It is worth chcking whether they are displayed with a "%.8s" format > (or similar) so that they don't need to be 0 terminated. > Otherwise the names must be strictly less than 8 bytes. > > David > > -- > David Laight: [email protected] > That is worthy of concern, so I checked top and ps: top uses char wmesg[KI_WMESGLEN + 1]; strlcpy(wmesg, pp->p_wmesg, sizeof(wmesg)); ps uses strprintorsetwidth(v, l->l_wmesg, mode); v->width = min(v->width, KI_WMESGLEN); Thanks, -- Matt
