diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index d5ae75b..9800b7b 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -441,7 +441,7 @@ xf86PciProbe(void)
                    memdone = TRUE;
                } else
                    xf86ErrorF(", ");
-               xf86ErrorF("0x%08lx/%ld", r->base_addr, r->size);
+               xf86ErrorF("0x%08llx/%llu", r->base_addr, r->size);
            }
        }
 
@@ -454,12 +454,12 @@ xf86PciProbe(void)
                    iodone = TRUE;
                } else
                    xf86ErrorF(", ");
-               xf86ErrorF("0x%08lx/%ld", r->base_addr, r->size);
+               xf86ErrorF("0x%08llx/%llu", r->base_addr, r->size);
            }
        }
 
        if ( info->rom_size ) {
-           xf86ErrorF(", BIOS @ 0x\?\?\?\?\?\?\?\?/%ld", info->rom_size);
+           xf86ErrorF(", BIOS @ 0x\?\?\?\?\?\?\?\?/%llu", info->rom_size);
        }
 
        xf86ErrorF("\n");


