summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2014-05-08 18:09:23 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2014-05-08 18:09:23 +0000
commit5502a8e0c688f637d760869f3f158bf2fb320078 (patch)
tree44ec8fd6d8ae9ce3bd31ca3e2d15ffb7662ef03a /sys/dev
parent6163cc0704714c1055c126e5e6b9ee185740d2fd (diff)
Format string fix in disabled code. Format bus_space_handle_t with %xl,
cast bus_space_tag_t to (u_long)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ahc_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/ahc_pci.c b/sys/dev/pci/ahc_pci.c
index 1c2e1084109..75851c17456 100644
--- a/sys/dev/pci/ahc_pci.c
+++ b/sys/dev/pci/ahc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahc_pci.c,v 1.55 2011/07/17 22:46:48 matthew Exp $ */
+/* $OpenBSD: ahc_pci.c,v 1.56 2014/05/08 18:09:22 sf Exp $ */
/* $NetBSD: ahc_pci.c,v 1.43 2003/08/18 09:16:22 taca Exp $ */
/*
@@ -42,7 +42,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: ahc_pci.c,v 1.55 2011/07/17 22:46:48 matthew Exp $
+ * $Id: ahc_pci.c,v 1.56 2014/05/08 18:09:22 sf Exp $
*
* //depot/aic7xxx/aic7xxx/aic7xxx_pci.c#57 $
*
@@ -793,8 +793,8 @@ ahc_pci_attach(parent, self, aux)
ioh_valid = (pci_mapreg_map(pa, AHC_PCI_IOADDR,
PCI_MAPREG_TYPE_IO, 0, &iot, &ioh, NULL, NULL, 0) == 0);
#if 0
- printf("%s: mem mapping: memt 0x%x, memh 0x%x, iot 0x%x, ioh 0x%lx\n",
- ahc_name(ahc), memt, (u_int32_t)memh, (u_int32_t)iot, ioh);
+ printf("%s: mem mapping: memt 0x%lx, memh 0x%lx, iot 0x%lx, ioh 0x%lx\n",
+ ahc_name(ahc), (u_long)memt, memh, (u_long)iot, ioh);
#endif
if (ioh_valid) {