Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Use dev_printk() when possible

Use dev_printk() when possible. This makes messages more consistent with
other device-related messages and, in some cases, adds useful information.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

+4 -5
+1 -2
drivers/pci/pci-sysfs.c
··· 1111 1111 kfree(b->legacy_io); 1112 1112 b->legacy_io = NULL; 1113 1113 kzalloc_err: 1114 - printk(KERN_WARNING "pci: warning: could not create legacy I/O port and ISA memory resources to sysfs\n"); 1115 - return; 1114 + dev_warn(&b->dev, "could not create legacy I/O port and ISA memory resources in sysfs\n"); 1116 1115 } 1117 1116 1118 1117 void pci_remove_legacy_files(struct pci_bus *b)
+3 -3
drivers/pci/quirks.c
··· 177 177 if (!tmp || cls == tmp) 178 178 continue; 179 179 180 - printk(KERN_DEBUG "PCI: CLS mismatch (%u != %u), using %u bytes\n", 181 - cls << 2, tmp << 2, 182 - pci_dfl_cache_line_size << 2); 180 + pci_printk(KERN_DEBUG, dev, "CLS mismatch (%u != %u), using %u bytes\n", 181 + cls << 2, tmp << 2, 182 + pci_dfl_cache_line_size << 2); 183 183 pci_cache_line_size = pci_dfl_cache_line_size; 184 184 } 185 185 }