summaryrefslogtreecommitdiffstats
path: root/sys/pci/agp_amd.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-15 01:50:09 +0000
committermarcel <marcel@FreeBSD.org>2002-10-15 01:50:09 +0000
commit4b884ea067a5a3faadcd37705049c2fabda12d4a (patch)
treecbd95e188ca0e61e331e08ba5c0ad201a93f9b6d /sys/pci/agp_amd.c
parent805d2c9f3e3768596e6fec3387deaa55c5fdfec8 (diff)
downloadFreeBSD-src-4b884ea067a5a3faadcd37705049c2fabda12d4a.zip
FreeBSD-src-4b884ea067a5a3faadcd37705049c2fabda12d4a.tar.gz
Fix previous commit: Don't cast integral types to pointers to
print them with %p. Cast to unsigned long and print with %#lx. Discussed with: bde
Diffstat (limited to 'sys/pci/agp_amd.c')
-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 26a0f3b..382becf 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
*/
OpenPOWER on IntegriCloud