Messages in this thread Patch in this message | | | From | Yinghai Lu <> | Subject | [PATCH 2/7] pci: add KERN_PCI | Date | Wed, 17 Sep 2008 17:18:26 -0700 |
| |
use DEFINE_LOGLEVEL_SETUP to set loglevel for pci
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> --- drivers/pci/pci.c | 2 ++ include/linux/pci.h | 2 ++ 2 files changed, 4 insertions(+)
Index: linux-2.6/drivers/pci/pci.c =================================================================== --- linux-2.6.orig/drivers/pci/pci.c +++ linux-2.6/drivers/pci/pci.c @@ -1953,6 +1953,8 @@ static int __devinit pci_setup(char *str } early_param("pci", pci_setup); +DEFINE_LOGLEVEL_SETUP(pci, KERN_PCI, "pci:"); + device_initcall_sync(pci_init); EXPORT_SYMBOL(pci_reenable_device); Index: linux-2.6/include/linux/pci.h =================================================================== --- linux-2.6.orig/include/linux/pci.h +++ linux-2.6/include/linux/pci.h @@ -55,6 +55,8 @@ /* Include the ID list */ #include <linux/pci_ids.h> +#define KERN_PCI "<pci>" + /* pci_slot represents a physical slot */ struct pci_slot { struct pci_bus *bus; /* The bus this slot is on */
| |