diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2012-07-05 16:07:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:36:36 -0400 |
commit | 3d9d8af330a891f141db420115238f01e4c6ece7 (patch) | |
tree | e184e7da8625c3de578e48a308f634eb68de0865 /drivers/bcma/driver_pci_host.c | |
parent | cddec90254c3c3d20752bf9053c496035cdfef6a (diff) |
bcma: use custom printing functions
Having bus number printed makes it much easier to anaylze logs on
systems with more buses. For example Netgear WNDR4500 has 3 AMBA buses
in total, which makes standard log really messy.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_pci_host.c')
-rw-r--r-- | drivers/bcma/driver_pci_host.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index d6e8a37e3e5f..cbae2c231336 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c | |||
@@ -36,7 +36,7 @@ bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) | |||
36 | return false; | 36 | return false; |
37 | 37 | ||
38 | if (bus->sprom.boardflags_lo & BCMA_CORE_PCI_BFL_NOPCI) { | 38 | if (bus->sprom.boardflags_lo & BCMA_CORE_PCI_BFL_NOPCI) { |
39 | pr_info("This PCI core is disabled and not working\n"); | 39 | bcma_info(bus, "This PCI core is disabled and not working\n"); |
40 | return false; | 40 | return false; |
41 | } | 41 | } |
42 | 42 | ||
@@ -341,6 +341,7 @@ static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc, | |||
341 | */ | 341 | */ |
342 | static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) | 342 | static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) |
343 | { | 343 | { |
344 | struct bcma_bus *bus = pc->core->bus; | ||
344 | u8 cap_ptr, root_ctrl, root_cap, dev; | 345 | u8 cap_ptr, root_ctrl, root_cap, dev; |
345 | u16 val16; | 346 | u16 val16; |
346 | int i; | 347 | int i; |
@@ -379,7 +380,8 @@ static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) | |||
379 | udelay(10); | 380 | udelay(10); |
380 | } | 381 | } |
381 | if (val16 == 0x1) | 382 | if (val16 == 0x1) |
382 | pr_err("PCI: Broken device in slot %d\n", dev); | 383 | bcma_err(bus, "PCI: Broken device in slot %d\n", |
384 | dev); | ||
383 | } | 385 | } |
384 | } | 386 | } |
385 | } | 387 | } |
@@ -392,11 +394,11 @@ void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) | |||
392 | u32 pci_membase_1G; | 394 | u32 pci_membase_1G; |
393 | unsigned long io_map_base; | 395 | unsigned long io_map_base; |
394 | 396 | ||
395 | pr_info("PCIEcore in host mode found\n"); | 397 | bcma_info(bus, "PCIEcore in host mode found\n"); |
396 | 398 | ||
397 | pc_host = kzalloc(sizeof(*pc_host), GFP_KERNEL); | 399 | pc_host = kzalloc(sizeof(*pc_host), GFP_KERNEL); |
398 | if (!pc_host) { | 400 | if (!pc_host) { |
399 | pr_err("can not allocate memory"); | 401 | bcma_err(bus, "can not allocate memory"); |
400 | return; | 402 | return; |
401 | } | 403 | } |
402 | 404 | ||