summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-10-02 21:06:18 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-10-02 21:06:18 +0000
commit0727e266f49275d1c6fd044cd6efa888936b6d5a (patch)
tree7ad10203121b18bc84d2cc0bb29de48b5226d0cc
parenta7bcdf13ad79e3ae2d738ada7e2473804cc1443d (diff)
Format string fixes: Use %l* for paddr_t
-rw-r--r--sys/arch/i386/i386/machdep.c6
-rw-r--r--sys/arch/i386/pci/pci_addr_fixup.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index ce23c62287c..cca709dc857 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.524 2013/09/28 12:40:30 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.525 2013/10/02 21:06:16 sf Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2775,7 +2775,7 @@ dumpsys()
/* Print out how many MBs we have more to go. */
if (dbtob(blkno - dumplo) % (1024 * 1024) < NBPG)
- printf("%d ",
+ printf("%ld ",
(ptoa(dumpsize) - maddr) / (1024 * 1024));
#if 0
printf("(%x %lld) ", maddr, blkno);
@@ -3225,7 +3225,7 @@ init386(paddr_t first_avail)
if (extent_alloc_region(iomem_ex, a, e - a, EX_NOWAIT))
/* XXX What should we do? */
- printf("\nWARNING: CAN'T ALLOCATE RAM (%x-%x)"
+ printf("\nWARNING: CAN'T ALLOCATE RAM (%lx-%lx)"
" FROM IOMEM EXTENT MAP!\n", a, e);
physmem += atop(e - a);
diff --git a/sys/arch/i386/pci/pci_addr_fixup.c b/sys/arch/i386/pci/pci_addr_fixup.c
index 10238e5a989..96dd3060f62 100644
--- a/sys/arch/i386/pci/pci_addr_fixup.c
+++ b/sys/arch/i386/pci/pci_addr_fixup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_addr_fixup.c,v 1.23 2013/10/01 19:41:33 sf Exp $ */
+/* $OpenBSD: pci_addr_fixup.c,v 1.24 2013/10/02 21:06:17 sf Exp $ */
/* $NetBSD: pci_addr_fixup.c,v 1.7 2000/08/03 20:10:45 nathanw Exp $ */
/*-
@@ -136,7 +136,7 @@ pci_addr_fixup(struct pcibios_softc *sc, pci_chipset_tag_t pc, int maxbus)
start = PCIADDR_ISAMEM_RESERVE;
sc->mem_alloc_start = (start + 0x100000 + 1) & ~(0x100000 - 1);
sc->port_alloc_start = PCIADDR_ISAPORT_RESERVE;
- PCIBIOS_PRINTV((" Physical memory end: 0x%08x\n PCI memory mapped I/O "
+ PCIBIOS_PRINTV((" Physical memory end: 0x%08lx\n PCI memory mapped I/O "
"space start: 0x%08x\n", avail_end, sc->mem_alloc_start));
/*