Subject: Re: interleaved disk probing output
To: Matt Thomas <matt@3am-software.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 10/10/2003 19:27:09
On Fri, Oct 10, 2003 at 10:16:06AM -0700, Matt Thomas wrote:
> Wouldn't it make more sense to change the aprint stuff to deal with this?
> Add a parameter that will store the buffered output until a newline is
> reached and then emits it as one large chunk?
> 
> aprint_create(&ctx);
> aprint_buffered(ctx, ...);
> aprint_destroy(ctx);

Then you could have wd0 and sd0 interleaved.
It would be OK, I guess, if we could put several lines in the buffer.
We still needs an ordering between atapi and SCSI though, so that
ordering of devices between atapi and scsi don't change between reboots.

> 
> There is *NO* reason to slow down system startup for pretty printing.

I don't think the slow down would be noticable. At the time config_found
or config_attach is called, most of the work is already done.

--
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--