summaryrefslogtreecommitdiffstats
path: root/sys/dev/tdfx
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-07 21:19:47 +0000
committerjhb <jhb@FreeBSD.org>2002-11-07 21:19:47 +0000
commit03fe039475ad8f772826c68c33e81f458d83e909 (patch)
tree83c6cffcbd2ac5ae45d1d19e22ab0638dc2165e3 /sys/dev/tdfx
parent3eba31622870483c77989f583e33b09d254b6246 (diff)
downloadFreeBSD-src-03fe039475ad8f772826c68c33e81f458d83e909.zip
FreeBSD-src-03fe039475ad8f772826c68c33e81f458d83e909.tar.gz
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).
Diffstat (limited to 'sys/dev/tdfx')
-rw-r--r--sys/dev/tdfx/tdfx_pci.c4
1 files changed, 2 insertions, 2 deletions
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
OpenPOWER on IntegriCloud