From 18e0cd7dde8a05c508a198bcb7d37eb0021e6756 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Tue, 15 Oct 2002 01:50:09 +0000 Subject: [PATCH] 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 ++-- 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 26a0f3b5d4c2..382becf6b565 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 26a0f3b5d4c2..382becf6b565 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 */