On Tue, 10 Aug 1999, Warner Losh wrote:
> I'd be very careful of line wrapping probe messages. I have scripts
> that rely on them being on one line to get a list of irqs, etc.
I would consider information from the kernel probe/attach to be useful
only for humans.
An interface to query the resource manager directly is likely to be a
better solution to your problem.
Besides, if your perl skills aren't able to cope with getting all 'fooX:'
lines, and stripping out the 'fooX:' bits before parsing then you have
other problems.
> However, the whole issue of how probe messages should print, and how
> much is a religious war that I try to steer clear of...
Correct, but the nature of the kernel probe/attach messages is to convey
information in a readable, consistent, useful manner.
If we didn't want pretty line wrapping we'd all be using linux and have
stupid stuff like copyright messages as well. :)
At some point all of the boot messages should be wrapped by 'if
(bootverbose) { ... }' anyway.
--
| Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD |
| [EMAIL PROTECTED] | 2 x '84 Volvo 245DL | ix86,sparc,pmax |
| http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever |
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message