Subject: Re: RFC: /kern/summary
From: Ignatios Souvatzis <email@example.com>
Date: 03/11/1999 13:11:59
On Wed, Mar 10, 1999 at 03:59:29PM -0600, Brian C. Grayson wrote:
> On Wed, Mar 10, 1999 at 04:44:00PM +0100, Olaf Seibert wrote:
> > Perhaps it is useful to make the lines in the file semi-fixed format: if
> > the values change, they will stay in the same seek offsets. This may
> > require padding with zeros or spaces of course. You may try to determine
> > the required space at boot time, or you could be lazy and just reserve
> > "plenty" and just always pad.
> This could definitely be done. If we want to keep it
> source-able by sh, though, all padding will have to be done at
> the end of a line,
no, it wouldn't necessarily...
> which means sprintf won't cut it.
oh yes, it would.
Try printf("MemorySize=%09d\n", 345) for numbers, or
printf("TheKernelName=%20s\n", "unknown") for strings.