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
This commit is contained in:
Marcel Moolenaar 2002-10-15 01:50:09 +00:00
parent 803cc8aa8f
commit 18e0cd7dde
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105145
2 changed files with 4 additions and 4 deletions

View File

@ -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
*/

View File

@ -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
*/