diff options
author | 2001-01-16 15:37:53 +0000 | |
---|---|---|
committer | 2001-01-16 15:37:53 +0000 | |
commit | ffdf909de2f73a5f390feb22a929b8d1490146c8 (patch) | |
tree | 157b25108663d84a50b79f4f63e6a8e4c2d95ff4 /sys | |
parent | Use objcopy to build the bootblocks instead of a hairy dd. (diff) | |
download | wireguard-openbsd-ffdf909de2f73a5f390feb22a929b8d1490146c8.tar.xz wireguard-openbsd-ffdf909de2f73a5f390feb22a929b8d1490146c8.zip |
Print more diagnostics on bus_space_map failure.
Diffstat (limited to 'sys')
-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); } |