From 4b884ea067a5a3faadcd37705049c2fabda12d4a Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 15 Oct 2002 01:50:09 +0000 Subject: 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 --- sys/dev/agp/agp_amd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 */ -- cgit v1.1