summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-12 20:40:36 +0000
committermarcel <marcel@FreeBSD.org>2002-10-12 20:40:36 +0000
commitf3bd8dcc22b54420a4683cbb56ea41073711eb89 (patch)
tree75fc4b5a0f7cf63cdfce02337722b113055ba8d6 /sys/pci
parente7eb3591f6a5c8786a1cc7434872b76124563be4 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp_amd.c4
1 files changed, 2 insertions, 2 deletions
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
*/
OpenPOWER on IntegriCloud