diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-16 15:37:54 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-16 15:37:54 +0000 |
commit | 53a865f9b304de1ca3eba7bd2d6f2e839e110800 (patch) | |
tree | 595c3ef716ffc81884914cdc14702d447cb07e09 /sys/dev | |
parent | eb4e10d4941d7ba5840bcced3722e4402d503c93 (diff) |
Print more diagnostics on bus_space_map failure.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/cy82c693.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/cy82c693.c b/sys/dev/pci/cy82c693.c index 9616b3de089..9855fb654d5 100644 --- a/sys/dev/pci/cy82c693.c +++ b/sys/dev/pci/cy82c693.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cy82c693.c,v 1.1 2000/06/09 17:10:58 chris Exp $ */ +/* $OpenBSD: cy82c693.c,v 1.2 2001/01/16 15:37:53 art Exp $ */ /* $NetBSD: cy82c693.c,v 1.1 2000/06/06 03:07:39 thorpej Exp $ */ /*- @@ -81,6 +81,7 @@ cy82c693_init(bus_space_tag_t iot) { bus_space_handle_t ioh; int s; + int error; CYHC_LOCK(s); @@ -91,8 +92,9 @@ cy82c693_init(bus_space_tag_t iot) return (&cyhc_handle); } - if (bus_space_map(iot, CYHC_CONFIG_ADDR, 2, 0, &ioh) != 0) { + if ((error = bus_space_map(iot, CYHC_CONFIG_ADDR, 2, 0, &ioh)) != 0) { CYHC_UNLOCK(s); + printf("cy82c693_init: bus_space_map failed (%d)", error); return (NULL); } |