summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/fwohci_pci.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2004-01-23 17:37:09 +0000
committersimokawa <simokawa@FreeBSD.org>2004-01-23 17:37:09 +0000
commit21c2acb52a3ed99e0e1412f654ace5729fee155d (patch)
tree864be2c85d1e5de03808a955e6ce83ba660c14f9 /sys/dev/firewire/fwohci_pci.c
parentd0bcb20ae1b6ac3b18ba535de9ca5fa099dfc08e (diff)
downloadFreeBSD-src-21c2acb52a3ed99e0e1412f654ace5729fee155d.zip
FreeBSD-src-21c2acb52a3ed99e0e1412f654ace5729fee155d.tar.gz
* fwohci_pci.c
Improve error message for attach failure. * sbp_targ.c - Add speed in struct sbp_targ_login. - Remove unnecessary htonl().
Diffstat (limited to 'sys/dev/firewire/fwohci_pci.c')
-rw-r--r--sys/dev/firewire/fwohci_pci.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index 891c4b2..6f516ed 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -324,11 +324,17 @@ fwohci_pci_attach(device_t self)
err = fwohci_init(sc, self);
- if (!err)
- err = device_probe_and_attach(sc->fc.bdev);
+ if (err) {
+ device_printf(self, "fwohci_init failed with err=%d\n", err);
+ fwohci_pci_detach(self);
+ return EIO;
+ }
+
+ err = device_probe_and_attach(sc->fc.bdev);
if (err) {
- device_printf(self, "FireWire init failed with err=%d\n", err);
+ device_printf(self, "probe_and_attach failed with err=%d\n",
+ err);
fwohci_pci_detach(self);
return EIO;
}
OpenPOWER on IntegriCloud