human-readable dmesg

Matthew Dillon dillon at apollo.backplane.com
Fri May 22 11:41:26 PDT 2009


: I wonder why pcidevs database is not used to make a nice dmesg? It
: doesn't need many changes to kernel. A diff and a loadable module
: attached.
: Result is like this:
:  -pci0: <unknown card> (vendor=0x1002, dev=0x4372) at 20.0
:  +pci0: <ATI Technologies SB400 SMBus Controller> at 20.0
:  -isab0: <PCI to ISA bridge (vendor=1002 device=4377)> at device 20.3 on pci0
:  +isab0: <ATI Technologies SB400 PCI-ISA Bridge> at device 20.3 on pci0

    That looks pretty good but I wonder if the module could simply be
    modified to use the pcidevs_data.h that already exists in 
    /usr/src/sys/bus/pci, instead of duplicating that whole thing in
    the module sub-dir.  I don't want us to have to update the device
    list in two places.

						-Matt





More information about the Kernel mailing list