diff --git a/sys/dev/agp/agp_amd.c b/sys/dev/agp/agp_amd.c index 26a0f3b5d4c2..382becf6b565 100644 --- a/sys/dev/agp/agp_amd.c +++ b/sys/dev/agp/agp_amd.c @@ -125,8 +125,8 @@ agp_amd_alloc_gatt(device_t dev) gatt->ag_pdir = vtophys((vm_offset_t) gatt->ag_vdir); if(bootverbose) - device_printf(dev, "gatt -> ag_pdir %p\n", - (caddr_t)gatt->ag_pdir); + device_printf(dev, "gatt -> ag_pdir %#lx\n", + (u_long)gatt->ag_pdir); /* * Allocate the gatt pages */ diff --git a/sys/pci/agp_amd.c b/sys/pci/agp_amd.c index 26a0f3b5d4c2..382becf6b565 100644 --- a/sys/pci/agp_amd.c +++ b/sys/pci/agp_amd.c @@ -125,8 +125,8 @@ agp_amd_alloc_gatt(device_t dev) gatt->ag_pdir = vtophys((vm_offset_t) gatt->ag_vdir); if(bootverbose) - device_printf(dev, "gatt -> ag_pdir %p\n", - (caddr_t)gatt->ag_pdir); + device_printf(dev, "gatt -> ag_pdir %#lx\n", + (u_long)gatt->ag_pdir); /* * Allocate the gatt pages */