diff options
author | marcel <marcel@FreeBSD.org> | 2002-10-15 01:50:09 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-10-15 01:50:09 +0000 |
commit | 4b884ea067a5a3faadcd37705049c2fabda12d4a (patch) | |
tree | cbd95e188ca0e61e331e08ba5c0ad201a93f9b6d /sys | |
parent | 805d2c9f3e3768596e6fec3387deaa55c5fdfec8 (diff) | |
download | FreeBSD-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')
-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 26a0f3b..382becf 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 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 */ |