paddr_t is long

---
 sys/arch/i386/i386/machdep.c       |    4 ++--
 sys/arch/i386/pci/pci_addr_fixup.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git sys/arch/i386/i386/machdep.c sys/arch/i386/i386/machdep.c
index 7924386..1a26e7d 100644
--- sys/arch/i386/i386/machdep.c
+++ sys/arch/i386/i386/machdep.c
@@ -2774,7 +2774,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);
@@ -3224,7 +3224,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 sys/arch/i386/pci/pci_addr_fixup.c sys/arch/i386/pci/pci_addr_fixup.c
index e4eb1b4..59880eb 100644
--- sys/arch/i386/pci/pci_addr_fixup.c
+++ sys/arch/i386/pci/pci_addr_fixup.c
@@ -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));
 
        /* 
-- 
1.7.6

Reply via email to