mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105145
@ -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…
Reference in New Issue
Block a user