diff options
author | marcel <marcel@FreeBSD.org> | 2002-10-12 20:40:36 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-10-12 20:40:36 +0000 |
commit | f3bd8dcc22b54420a4683cbb56ea41073711eb89 (patch) | |
tree | 75fc4b5a0f7cf63cdfce02337722b113055ba8d6 | |
parent | e7eb3591f6a5c8786a1cc7434872b76124563be4 (diff) | |
download | FreeBSD-src-f3bd8dcc22b54420a4683cbb56ea41073711eb89.zip FreeBSD-src-f3bd8dcc22b54420a4683cbb56ea41073711eb89.tar.gz |
Make this compile on 64-bit architectures (e.g. ia64) by not assuming
pointers (but more precisely vm_offset_t) can be printed with %x. Use
%p instead and cast the argument to caddr_t.
-rw-r--r-- | sys/dev/agp/agp_amd.c | 4 | ||||
-rw-r--r-- | sys/pci/agp_amd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/agp/agp_amd.c b/sys/dev/agp/agp_amd.c index d855d98..26a0f3b 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 %8x\n", - (vm_offset_t)gatt->ag_pdir); + device_printf(dev, "gatt -> ag_pdir %p\n", + (caddr_t)gatt->ag_pdir); /* * Allocate the gatt pages */ diff --git a/sys/pci/agp_amd.c b/sys/pci/agp_amd.c index d855d98..26a0f3b 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 %8x\n", - (vm_offset_t)gatt->ag_pdir); + device_printf(dev, "gatt -> ag_pdir %p\n", + (caddr_t)gatt->ag_pdir); /* * Allocate the gatt pages */ |