From 03fe039475ad8f772826c68c33e81f458d83e909 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 7 Nov 2002 21:19:47 +0000 Subject: Print pointers with %p instead of casting them to an unsigned int and then printing them with 0x%x which doesn't work when sizeof(void *) > sizeof(int). --- sys/dev/tdfx/tdfx_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/tdfx') diff --git a/sys/dev/tdfx/tdfx_pci.c b/sys/dev/tdfx/tdfx_pci.c index 24879bb..6a3b531 100644 --- a/sys/dev/tdfx/tdfx_pci.c +++ b/sys/dev/tdfx/tdfx_pci.c @@ -799,8 +799,8 @@ tdfx_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td) int retval = 0; struct tdfx_pio_data *piod = (struct tdfx_pio_data*)data; #ifdef DEBUG - printf("IOCTL'd by #%d, cmd: 0x%x, data: 0x%x\n", td->td_proc->p_pid, (u_int32_t)cmd, - (unsigned int)piod); + printf("IOCTL'd by #%d, cmd: 0x%x, data: %p\n", td->td_proc->p_pid, (u_int32_t)cmd, + piod); #endif switch(_IOC_TYPE(cmd)) { /* Return the real error if negative, or simply stick the valid return -- cgit v1.1