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:
parent
803cc8aa8f
commit
18e0cd7dde
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user