PCI: Convert to using %pOF instead of full_name()
Now that we have a custom printf format specifier, convert users of full_name() to use %pOF instead. This is preparation for removing storing of the full path string for each node. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Bjorn Helgaas

parent
36b8518950
commit
b63773a801
@@ -95,7 +95,7 @@ int rpaphp_enable_slot(struct slot *slot)
|
||||
|
||||
bus = pci_find_bus_by_node(slot->dn);
|
||||
if (!bus) {
|
||||
err("%s: no pci_bus for dn %s\n", __func__, slot->dn->full_name);
|
||||
err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ int rpaphp_enable_slot(struct slot *slot)
|
||||
|
||||
if (rpaphp_debug) {
|
||||
struct pci_dev *dev;
|
||||
dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name);
|
||||
dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn);
|
||||
list_for_each_entry(dev, &bus->devices, bus_list)
|
||||
dbg("\t%s\n", pci_name(dev));
|
||||
}
|
||||
|
Reference in New Issue
Block a user