aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp_pci.c
diff options
context:
space:
mode:
authorTaku Izumi <izumi.taku@jp.fujitsu.com>2008-10-22 22:54:39 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-10-23 19:14:00 -0400
commitbe7bce250a88fbbb5a67204eb148bce8b798780a (patch)
treec30a5f7f145e4b4ab59f139b529eb170fa00f682 /drivers/pci/hotplug/shpchp_pci.c
parentf98ca311f3a32e2adc229fecd6bf732db07fcca3 (diff)
PCI hotplug: shpchp: message refinement
This patch refines messages in shpchp module. The main changes are as follows: - remove the trailing "." - remove __func__ as much as possible - capitalize the first letter of messages - show PCI device address including its domain Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_pci.c')
-rw-r--r--drivers/pci/hotplug/shpchp_pci.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/pci/hotplug/shpchp_pci.c b/drivers/pci/hotplug/shpchp_pci.c
index faecbfaa64f0..138f161becc0 100644
--- a/drivers/pci/hotplug/shpchp_pci.c
+++ b/drivers/pci/hotplug/shpchp_pci.c
@@ -49,9 +49,7 @@ static void program_fw_provided_values(struct pci_dev *dev)
49 /* use default values if we can't get them from firmware */ 49 /* use default values if we can't get them from firmware */
50 if (get_hp_params_from_firmware(dev, &hpp) || 50 if (get_hp_params_from_firmware(dev, &hpp) ||
51 !hpp.t0 || (hpp.t0->revision > 1)) { 51 !hpp.t0 || (hpp.t0->revision > 1)) {
52 printk(KERN_WARNING 52 warn("Could not get hotplug parameters. Use defaults\n");
53 "%s: Could not get hotplug parameters. Use defaults\n",
54 __func__);
55 hpp.t0 = &hpp.type0_data; 53 hpp.t0 = &hpp.type0_data;
56 hpp.t0->revision = 0; 54 hpp.t0->revision = 0;
57 hpp.t0->cache_line_size = 8; 55 hpp.t0->cache_line_size = 8;
@@ -105,9 +103,9 @@ int __ref shpchp_configure_device(struct slot *p_slot)
105 103
106 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); 104 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0));
107 if (dev) { 105 if (dev) {
108 ctrl_err(ctrl, 106 ctrl_err(ctrl, "Device %s already exists "
109 "Device %s already exists at %x:%x, cannot hot-add\n", 107 "at %04x:%02x:%02x, cannot hot-add\n", pci_name(dev),
110 pci_name(dev), p_slot->bus, p_slot->device); 108 pci_domain_nr(parent), p_slot->bus, p_slot->device);
111 pci_dev_put(dev); 109 pci_dev_put(dev);
112 return -EINVAL; 110 return -EINVAL;
113 } 111 }
@@ -173,8 +171,8 @@ int shpchp_unconfigure_device(struct slot *p_slot)
173 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; 171 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate;
174 struct controller *ctrl = p_slot->ctrl; 172 struct controller *ctrl = p_slot->ctrl;
175 173
176 ctrl_dbg(ctrl, "%s: bus/dev = %x/%x\n", 174 ctrl_dbg(ctrl, "%s: domain:bus:dev = %04x:%02x:%02x\n",
177 __func__, p_slot->bus, p_slot->device); 175 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device);
178 176
179 for (j=0; j<8 ; j++) { 177 for (j=0; j<8 ; j++) {
180 struct pci_dev* temp = pci_get_slot(parent, 178 struct pci_dev* temp = pci_get_slot(parent,