]> err.no Git - linux-2.6/commitdiff
sgiioc4: fixup message on resource allocation failure
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 18 Aug 2008 19:40:04 +0000 (21:40 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 18 Aug 2008 19:40:04 +0000 (21:40 +0200)
There can be more than one sgiioc4 card in the system so print
also PCI device name on resource allocation failure (so we know
which one is the problematic one).

Reported-by: Jeremy Higdon <jeremy@sgi.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/sgiioc4.c

index 42eef19a18f14f7c46611ffb2a7073e8d8cce6d4..681306c9d79be56e8fa1c44decf2bc2a29b950c4 100644 (file)
@@ -621,9 +621,9 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
        if (!request_mem_region(cmd_phys_base, IOC4_CMD_CTL_BLK_SIZE,
            DRV_NAME)) {
                printk(KERN_ERR
-                       "%s : %s -- ERROR, Addresses "
+                       "%s %s: -- ERROR, Addresses "
                        "0x%p to 0x%p ALREADY in use\n",
-                      __func__, DRV_NAME, (void *) cmd_phys_base,
+                      DRV_NAME, pci_name(dev), (void *)cmd_phys_base,
                       (void *) cmd_phys_base + IOC4_CMD_CTL_BLK_SIZE);
                return -ENOMEM;
        }