Soren Schmidt <[EMAIL PROTECTED]> wrote:

> It seems Nick Hibma wrote:
> > > If you end up doing this, can you have the driver print a line letting 
> > > people know this is intentional?  i.e., 
> > > 
> > > ad0: DMA disabled: This drive does not properly support DMA mode.
> > > ad0: To force DMA for this drive (at your own risk) set flags 0xXX.
> > 
> > Let's not go the Linux way and make the boot messages slow down booting.
> 
> Agreed.

     While this can be moved into the man page, I don't see how a
message like this can significantly slow down booting, unless you have a
slow serial console.  However, a pointer is still useful; I'd suggest a
shorter message like:

  ad0: DMA disabled: See ad(4) man page for possible reasons.

(Replace "ad" with the name of the ata man page.)  If you're really
concerned about boot messages and boot speed, all messages for
configured devices should be suppressed and only printed for boot -v;
only errors, warnings, and unconfigured device info should be displayed.
Today, the "non-verbose" boot messages are pretty verbose.  Examples
include:

  ata-pci0: Busmastering DMA supported
        Having this line is no different from the above "DMA disabled ..."
        message (although, yes, the messages are from different drivers).

  lpt0: Interrupt-driven port
        If you're really concerned about boot speed, this line can be
        merged with the main lpt0 line, e.g. use:

                lpt0: <generic printer> on ppbus 0, Interrupt-driven port

        instead of:

                lpt0: <generic printer> on ppbus 0
                lpt0: Interrupt-driven port

        (And yes, I did take a look at the code to see if this is
        possible, and it easily is.)

  acd0: supported read types: CD-R, CD-DA, DVD-ROM, DVD-R
  acd0: Audio: play, 255 volume levels
  acd0: Mechanism: ejectable tray
  acd0: Medium: 120mm data disc loaded, unlocked
        Again, these are probably "boot -v" information.  If you're
        really concerned about boot speed, you should be concerned about 
        this.

[ Personally, I like the way dmesg is now, but I guess some people
  don't.  ]

--
        Darryl Okahata
        [EMAIL PROTECTED]

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to