.. | .. |
---|
7 | 7 | */ |
---|
8 | 8 | |
---|
9 | 9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
| 10 | +#define dev_fmt pr_fmt |
---|
10 | 11 | |
---|
11 | 12 | #include <linux/list.h> |
---|
12 | 13 | #include <linux/slab.h> |
---|
.. | .. |
---|
109 | 110 | continue; |
---|
110 | 111 | |
---|
111 | 112 | 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); |
---|
115 | 115 | list_add_tail(&dev_entry->list, |
---|
116 | 116 | &vpci_dev->dev_list[slot]); |
---|
117 | 117 | goto unlock; |
---|
.. | .. |
---|
122 | 122 | /* Assign to a new slot on the virtual PCI bus */ |
---|
123 | 123 | for (slot = 0; slot < PCI_SLOT_MAX; slot++) { |
---|
124 | 124 | 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); |
---|
127 | 127 | list_add_tail(&dev_entry->list, |
---|
128 | 128 | &vpci_dev->dev_list[slot]); |
---|
129 | 129 | goto unlock; |
---|