aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2019-05-07 18:37:53 -0400
committerBjorn Helgaas <bhelgaas@google.com>2019-05-09 08:49:49 -0400
commit7db4af43c97b68dc65394c799b86cdd0fffe5f8d (patch)
tree07ac26d53db62f28a3235c26b7d1d9ec0777d281
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
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>
-rw-r--r--drivers/pci/pci-sysfs.c3
-rw-r--r--drivers/pci/quirks.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 25794c27c7a4..6d27475e39b2 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1111,8 +1111,7 @@ legacy_io_err:
1111 kfree(b->legacy_io); 1111 kfree(b->legacy_io);
1112 b->legacy_io = NULL; 1112 b->legacy_io = NULL;
1113kzalloc_err: 1113kzalloc_err:
1114 printk(KERN_WARNING "pci: warning: could not create legacy I/O port and ISA memory resources to sysfs\n"); 1114 dev_warn(&b->dev, "could not create legacy I/O port and ISA memory resources in sysfs\n");
1115 return;
1116} 1115}
1117 1116
1118void pci_remove_legacy_files(struct pci_bus *b) 1117void pci_remove_legacy_files(struct pci_bus *b)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index a59ad09ce911..0f0f73ff9ee2 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -177,9 +177,9 @@ static int __init pci_apply_final_quirks(void)
177 if (!tmp || cls == tmp) 177 if (!tmp || cls == tmp)
178 continue; 178 continue;
179 179
180 printk(KERN_DEBUG "PCI: CLS mismatch (%u != %u), using %u bytes\n", 180 pci_printk(KERN_DEBUG, dev, "CLS mismatch (%u != %u), using %u bytes\n",
181 cls << 2, tmp << 2, 181 cls << 2, tmp << 2,
182 pci_dfl_cache_line_size << 2); 182 pci_dfl_cache_line_size << 2);
183 pci_cache_line_size = pci_dfl_cache_line_size; 183 pci_cache_line_size = pci_dfl_cache_line_size;
184 } 184 }
185 } 185 }