Commit be2c3676 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

s390/pci: provide more debug information

Add some debug data to observe the lifetime of the
architecture specific device information.
Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: default avatarGerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 01553d9a
...@@ -772,6 +772,7 @@ void pcibios_remove_bus(struct pci_bus *bus) ...@@ -772,6 +772,7 @@ void pcibios_remove_bus(struct pci_bus *bus)
list_del(&zdev->entry); list_del(&zdev->entry);
spin_unlock(&zpci_list_lock); spin_unlock(&zpci_list_lock);
zpci_dbg(3, "rem fid:%x\n", zdev->fid);
kfree(zdev); kfree(zdev);
} }
......
...@@ -193,12 +193,12 @@ static int clp_query_pci_fn(struct zpci_dev *zdev, u32 fh) ...@@ -193,12 +193,12 @@ static int clp_query_pci_fn(struct zpci_dev *zdev, u32 fh)
int clp_add_pci_device(u32 fid, u32 fh, int configured) int clp_add_pci_device(u32 fid, u32 fh, int configured)
{ {
struct zpci_dev *zdev; struct zpci_dev *zdev;
int rc; int rc = -ENOMEM;
zpci_dbg(3, "add fid:%x, fh:%x, c:%d\n", fid, fh, configured); zpci_dbg(3, "add fid:%x, fh:%x, c:%d\n", fid, fh, configured);
zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); zdev = kzalloc(sizeof(*zdev), GFP_KERNEL);
if (!zdev) if (!zdev)
return -ENOMEM; goto error;
zdev->fh = fh; zdev->fh = fh;
zdev->fid = fid; zdev->fid = fid;
...@@ -219,6 +219,7 @@ int clp_add_pci_device(u32 fid, u32 fh, int configured) ...@@ -219,6 +219,7 @@ int clp_add_pci_device(u32 fid, u32 fh, int configured)
return 0; return 0;
error: error:
zpci_dbg(0, "add fid:%x, rc:%d\n", fid, rc);
kfree(zdev); kfree(zdev);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment