hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/xen/xen-pciback/vpci.c
....@@ -7,6 +7,7 @@
77 */
88
99 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
10
+#define dev_fmt pr_fmt
1011
1112 #include <linux/list.h>
1213 #include <linux/slab.h>
....@@ -109,9 +110,8 @@
109110 continue;
110111
111112 if (match_slot(dev, t->dev)) {
112
- pr_info("vpci: %s: assign to virtual slot %d func %d\n",
113
- pci_name(dev), slot,
114
- func);
113
+ dev_info(&dev->dev, "vpci: assign to virtual slot %d func %d\n",
114
+ slot, func);
115115 list_add_tail(&dev_entry->list,
116116 &vpci_dev->dev_list[slot]);
117117 goto unlock;
....@@ -122,8 +122,8 @@
122122 /* Assign to a new slot on the virtual PCI bus */
123123 for (slot = 0; slot < PCI_SLOT_MAX; slot++) {
124124 if (list_empty(&vpci_dev->dev_list[slot])) {
125
- pr_info("vpci: %s: assign to virtual slot %d\n",
126
- pci_name(dev), slot);
125
+ dev_info(&dev->dev, "vpci: assign to virtual slot %d\n",
126
+ slot);
127127 list_add_tail(&dev_entry->list,
128128 &vpci_dev->dev_list[slot]);
129129 goto unlock;