summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-26 03:31:35 +0000
committerimp <imp@FreeBSD.org>2002-02-26 03:31:35 +0000
commit36dfb69bea210fa4ca659643e740e2fbcdb15168 (patch)
treeef2428f993262bc2ec6316dbbba3665b06244175 /sys/dev/pci/pci_pci.c
parentddfe22a47501a00ee55074bdee51c4a39e18c143 (diff)
downloadFreeBSD-src-36dfb69bea210fa4ca659643e740e2fbcdb15168.zip
FreeBSD-src-36dfb69bea210fa4ca659643e740e2fbcdb15168.tar.gz
Fix warnings introduced in the PCI_ALLOW_UNSUPPORTED_IO_RANGE case.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 4dc84de..e71acee 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -316,11 +316,11 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
start = 0;
#else
if (start < sc->iobase)
- printf("start (%x) < sc->iobase (%x)\n", start, sc->iobase);
+ printf("start (%lx) < sc->iobase (%x)\n", start, sc->iobase);
if (end > sc->iolimit)
- printf("end (%x) > sc->iolimit (%x)\n", end, sc->iolimit);
+ printf("end (%lx) > sc->iolimit (%x)\n", end, sc->iolimit);
if (end < start)
- printf("end (%x) < start (%x)\n", end, start);
+ printf("end (%lx) < start (%lx)\n", end, start);
#endif
}
if (!pcib_is_isa_io(start) &&
@@ -353,11 +353,11 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
start = 0;
#else
if (start < sc->membase && end > sc->membase)
- printf("start (%x) < sc->membase (%x)\n", start, sc->membase);
+ printf("start (%lx) < sc->membase (%x)\n", start, sc->membase);
if (end > sc->memlimit)
- printf("end (%x) > sc->memlimit (%x)\n", end, sc->memlimit);
+ printf("end (%lx) > sc->memlimit (%x)\n", end, sc->memlimit);
if (end < start)
- printf("end (%x) < start (%x)\n", end, start);
+ printf("end (%lx) < start (%lx)\n", end, start);
#endif
}
if (!pcib_is_isa_mem(start) &&
OpenPOWER on IntegriCloud